Re: [fpc-devel] Fwd: While - Otherwise Statement

2015-10-11 Thread Sven Barth
Am 12.10.2015 03:19 schrieb "Dmitry Boyarintsev" : > > a bit off-topic, > > But has case-otherwise been in FPC from the start? > > I believe it came from GNU pascal ( http://www.gnu-pascal.de/gpc/otherwise.html) and never existed in Delphi world ( http://docwiki.embarcadero.com/RADStudio/XE3/en/Dec

Re: [fpc-devel] Fwd: While - Otherwise Statement

2015-10-11 Thread Sven Barth
Am 11.10.2015 23:56 schrieb "Steve Smith" : > > Am I being stupid? It's late here so... > > What's wrong with > > === code begin === > > while bool do >foo; > bar; > > or > > repeat >foo; > until bool; > > bar; > > === code end === You know... You got me there... Though at least for th

Re: [fpc-devel] Fwd: While - Otherwise Statement

2015-10-11 Thread Dmitry Boyarintsev
a bit off-topic, But has case-otherwise been in FPC from the start? I believe it came from GNU pascal ( http://www.gnu-pascal.de/gpc/otherwise.html) and never existed in Delphi world ( http://docwiki.embarcadero.com/RADStudio/XE3/en/Declarations_and_Statements#Case_Statements) ?! I can see that F

Re: [fpc-devel] get/put in fpc

2015-10-11 Thread Schneider
Sven: > At least on my desktop it works. Don't know if your sysadmins fixed it by > now or if it's just my mobile browser that's buggy... -.- It seems to be a mobile problem. I can replicate it so it's not fixed yet. > And to answer the problem at hand: right now we don't support the TimeStamp

Re: [fpc-devel] Fwd: While - Otherwise Statement

2015-10-11 Thread Martin Frb
On 11/10/2015 22:33, Tomas Hajny wrote: On Sun, October 11, 2015 22:48, Sven Barth wrote: . . That "then" is a great idea! That would definitely not break anything and it would make sense indeed: === code begin === while bool do foo then bar; repeat foo; until bool then bar; ==

Re: [fpc-devel] Teensy (no OS) programmed with Free Pascal Embedded ARM

2015-10-11 Thread Michael Ring
I've already addressed some of the issues, instead of using records I am using objects now (classes unfortunately do not work) and there's a base class for gpio, spi, i2c, uart. The idea of having comments was that they show up as context sensitive help in Lazarus, they can easily be left out,

Re: [fpc-devel] Fwd: While - Otherwise Statement

2015-10-11 Thread Steve Smith
On 11/10/15 22:52, Steve Smith wrote: On 11/10/15 21:48, Sven Barth wrote: That "then" is a great idea! That would definitely not break anything and it would make sense indeed: === code begin === while bool do foo then bar; repeat foo; until bool then bar; === code end === Rega

Re: [fpc-devel] Fwd: While - Otherwise Statement

2015-10-11 Thread Steve Smith
On 11/10/15 21:48, Sven Barth wrote: That "then" is a great idea! That would definitely not break anything and it would make sense indeed: === code begin === while bool do foo then bar; repeat foo; until bool then bar; === code end === Regards, Sven Am I being stupid? It's lat

Re: [fpc-devel] Fwd: While - Otherwise Statement

2015-10-11 Thread Tomas Hajny
On Sun, October 11, 2015 22:48, Sven Barth wrote: . . > That "then" is a great idea! That would definitely not break anything and > it would make sense indeed: > > === code begin === > while bool do > foo > then > bar; > > repeat > foo; > until bool then > bar; > === code end === I'm afr

Re: [fpc-devel] Teensy (no OS) programmed with Free Pascal Embedded ARM

2015-10-11 Thread Jeppe Johansen
Well I think it might be too much for now. Haven't really maintained it since then Anyway, from what I found last I tried with your headers I think there could be some improvement that might instead warrant their inclusion into SVN. The main point back then was that the size was pretty tremen

Re: [fpc-devel] Parting is such sweet sorrow

2015-10-11 Thread mark diener
It does not work, I have tried. I never receive the confirmation email. On Sun, Oct 11, 2015 at 12:54 PM, Jonas Maebe wrote: > On 11/10/15 21:36, rpzrpz...@gmail.com wrote: > >> Would one of the moderators of the system remove me from the fpc lists. >> > > There is a link at the bottom of every

Re: [fpc-devel] Teensy (no OS) programmed with Free Pascal Embedded ARM

2015-10-11 Thread Michael Ring
The code that makes the compiler work with conf files: fpc -Fb*.conf [ring@macbookpro-wlan stm32f407vg]$ cat stm32f4xx.conf STM32F401CB,stm32f401x,stm32f4xx.lkr,%FLASHBASE:0x0800,%FLASHSIZE:0x0002,%SRAMBASE:0x2000,%SRAMSIZE:0x0001 STM32F401RB,stm32f401x,stm32f4xx.lkr,%FLASHBASE:0

Re: [fpc-devel] Teensy (no OS) programmed with Free Pascal Embedded ARM

2015-10-11 Thread Jeppe Johansen
Not sure what you are referring to here? On 10/11/2015 10:47 PM, Michael Ring wrote: I want to interface my Freedom-K64F code with this lib, on first view this looks pretty straightforward. Any chance to get your great patch for the use on arbitrary system units into trunk ? (the one you wrote

Re: [fpc-devel] Fwd: While - Otherwise Statement

2015-10-11 Thread Sven Barth
Am 11.10.2015 18:34 schrieb "Martin Frb" : > > On 11/10/2015 16:14, Sven Barth wrote: >> >> Am 11.10.2015 15:56 schrieb "MohsenTi" : >> > >> > Hi everybody >> > >> > I add new feature to FPC compiler to simplify programming. >> > this is While - Otherwise working like While - Else in python and has

Re: [fpc-devel] Teensy (no OS) programmed with Free Pascal Embedded ARM

2015-10-11 Thread Michael Ring
I want to interface my Freedom-K64F code with this lib, on first view this looks pretty straightforward. Any chance to get your great patch for the use on arbitrary system units into trunk ? (the one you wrote for me to make cmsis work) Am 11.10.15 um 22:33 schrieb Jeppe Johansen: On 10/11/20

Re: [fpc-devel] Fwd: While - Otherwise Statement

2015-10-11 Thread Sven Barth
Am 11.10.2015 18:56 schrieb "MohsenTi" : > I checked failed ones but it seems they are not related to my changes. It's best you compare the faillist files in tests/output/cpu-os from an unmodified and a modified run. This way you can find out if you had any changes in the testsuite. Also the test

Re: [fpc-devel] Teensy (no OS) programmed with Free Pascal Embedded ARM

2015-10-11 Thread Jeppe Johansen
On 10/11/2015 10:10 PM, Michael Ring wrote: Wow Jeppe, I am impressed, you used your time much better than I did, your port looks pretty complete! Please have a look at https://github.com/yunkot/pxl this lib was mentioned yesterday on lazarus list, this looks like a good layer above the lowl

Re: [fpc-devel] Teensy (no OS) programmed with Free Pascal Embedded ARM

2015-10-11 Thread Michael Ring
Wow Jeppe, I am impressed, you used your time much better than I did, your port looks pretty complete! Please have a look at https://github.com/yunkot/pxl this lib was mentioned yesterday on lazarus list, this looks like a good layer above the lowlevel code, there are already implementations

Re: [fpc-devel] Teensy (no OS) programmed with Free Pascal Embedded ARM

2015-10-11 Thread Jeppe Johansen
On 10/11/2015 03:54 PM, Paul Breneman wrote: On 10/10/2015 01:49 PM, Paul Breneman wrote: On 05/28/2015 08:45 AM, Paul Breneman wrote: Wow, yesterday I started this new message: http://forum.lazarus.freepascal.org/index.php/topic,28561.0.html And today Laksen says it's committed to SVN trunk

Re: [fpc-devel] Parting is such sweet sorrow

2015-10-11 Thread Jonas Maebe
On 11/10/15 21:36, rpzrpz...@gmail.com wrote: Would one of the moderators of the system remove me from the fpc lists. There is a link at the bottom of every message that comes from the lists that allows you to do so yourself. Jonas FPC mailing lists admin ___

[fpc-devel] Parting is such sweet sorrow

2015-10-11 Thread rpzrpz...@gmail.com
Would one of the moderators of the system remove me from the fpc lists. My days of freepascal are over. Now its C++11 plus Qt plus golang ==> my future. Thanks for all your efforts across many years. Good luck. md ___ fpc-devel maillist - fpc-deve

Re: [fpc-devel] Teensy (no OS) programmed with Free Pascal Embedded ARM

2015-10-11 Thread Michael Ring
I had a LPC1114 on the breadboard area of a development board for quite a while, fpc (trunk) is able to create binaries for this cpu. For lpc devices you need a linker script that creates a special checksum, besides this it works ootb. Of course you have to work a lot more low level that with m

Re: [fpc-devel] Fwd: While - Otherwise Statement

2015-10-11 Thread MohsenTi
I create 2 test files depends on testsuite readme file and make testsuite with make full command and set TEST_FPC variable to fpc ppcx64 compiler. for-otherwise and while-otherwise diff file and test files attached to email. test result : Total = 6906 (75:6831) Total number of compilations = 426

Re: [fpc-devel] Fwd: While - Otherwise Statement

2015-10-11 Thread Martin Frb
On 11/10/2015 16:14, Sven Barth wrote: Am 11.10.2015 15:56 schrieb "MohsenTi" >: > > Hi everybody > > I add new feature to FPC compiler to simplify programming. > this is While - Otherwise working like While - Else in python and has backwards compatibility. Nic

Re: [fpc-devel] Teensy (no OS) programmed with Free Pascal Embedded ARM

2015-10-11 Thread Mark Morgan Lloyd
Paul Breneman wrote: Got a reply with lots of questions: How easy is it to do all the common hardware things from Freepascal? How much low-level setup is required use digital and analog I/O? Can you use the serial ports? Timers? Capacitive touch sensing? Can you even access the registers with

Re: [fpc-devel] Fwd: While - Otherwise Statement

2015-10-11 Thread Sven Barth
Am 11.10.2015 15:56 schrieb "MohsenTi" : > > Hi everybody > > I add new feature to FPC compiler to simplify programming. > this is While - Otherwise working like While - Else in python and has backwards compatibility. Nice idea with the otherwise. I first thought that this would break case-stateme

Re: [fpc-devel] new features and facilities

2015-10-11 Thread Jonas Maebe
On 11/10/15 14:22, MohsenTi wrote: I added more info needed by compiler ,but I don't know what is executionweight in pass_generate_code function of tcgwhilerepeatnode class The executionweight is used to determine how often a particular node will be executed. The higher the value, more often i

Re: [fpc-devel] Teensy (no OS) programmed with Free Pascal Embedded ARM

2015-10-11 Thread Paul Breneman
On 10/10/2015 01:49 PM, Paul Breneman wrote: On 05/28/2015 08:45 AM, Paul Breneman wrote: Wow, yesterday I started this new message: http://forum.lazarus.freepascal.org/index.php/topic,28561.0.html And today Laksen says it's committed to SVN trunk. That was fast! Thanks to all the FPC develop

[fpc-devel] Fwd: While - Otherwise Statement

2015-10-11 Thread MohsenTi
Hi everybody I add new feature to FPC compiler to simplify programming. this is While - Otherwise working like While - Else in python and has backwards compatibility. Examples Ex1: While (I<5) do begin Writeln(I); Dec(I); end otherwise writeln('otherwise'); Ex2: While (I<5) do begin Writeln(I);

Re: [fpc-devel] new features and facilities

2015-10-11 Thread MohsenTi
Hi I added new keyword to moderate while - else (otherwise) new codes is Ex1: while( I>5 ) do begin Dec(I); write(I); end otherwise write(' otherwise while '); Ex2: if (I<10) then while( I>5 ) do begin Dec(I); write(I); end otherwise write(' otherwise while ') else write(' IF ELSE '); I need