Re: [fpc-pascal] Recursion optimization by compiler

2010-09-04 Thread Roger Bailey
On Sep 2010, at 20:32, José Mejuto wrote: [ some stuff about recursion - at the bottom if you want to read it ] This a misunderstanding of way recursion can be flattened into a loop. It's especially not useful because the transformed version still uses a stack, so it doesn't execute in

[fpc-pascal] ARM STM32F Processor

2010-09-04 Thread Rainer Stratmann
Is it possible to compile for this device? Can somebody help? I want to switch from Atmel (8bit) to ARM. I Also need hardware demo board, if someone has an example. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] ARM-Cortex port

2010-09-04 Thread Jeppe Johansen
Den 26-08-2010 18:20, Geoffrey Barton skrev: On 24 Aug 2010, at 21:52, Florian Klaempfl wrote: Am 24.08.2010 11:53, schrieb Geoffrey Barton: using Jonas and Jeppe's answers to my idiot questions in this forum, and Jeppe's startup code for the STM32F, I have FPC cross-compiling for the

Re: [fpc-pascal] ARM STM32F Processor

2010-09-04 Thread Jeppe Johansen
Den 04-09-2010 10:50, Rainer Stratmann skrev: Is it possible to compile for this device? Yes Can somebody help? Yes I want to switch from Atmel (8bit) to ARM. I Also need hardware demo board, if someone has an example. I have a small guide here: http://j-software.dk/stm32f103.aspx I think

Re: [fpc-pascal] ARM STM32F Processor

2010-09-04 Thread Rainer Stratmann
Am Saturday 04 September 2010 11:57:25 schrieb Jeppe Johansen: Den 04-09-2010 10:50, Rainer Stratmann skrev: Is it possible to compile for this device? Yes Can somebody help? Yes I want to switch from Atmel (8bit) to ARM. I Also need hardware demo board, if someone has an example.

Re: [fpc-pascal] ARM STM32F Processor

2010-09-04 Thread Jeppe Johansen
Den 04-09-2010 12:37, Rainer Stratmann skrev: Am Saturday 04 September 2010 11:57:25 schrieb Jeppe Johansen: Den 04-09-2010 10:50, Rainer Stratmann skrev: Is it possible to compile for this device? Yes Can somebody help? Yes I want to switch from Atmel (8bit) to ARM. I Also need

Re: [fpc-pascal] Recursion optimization by compiler

2010-09-04 Thread Florian Klämpfl
Am 03.09.2010 21:31, schrieb Sven Barth: On 03.09.2010 18:02, Marco van de Voort wrote: Second, does FPC understand tail recursion? Depends on version, do fpc -i |grep -i tailrec to find out more. O.o Ok... now I'm officially impressed. Well, simple to implement and useless

Re: [fpc-pascal] Recursion optimization by compiler

2010-09-04 Thread Sven Barth
On 28.08.2010 11:57, Florian Klämpfl wrote: Am 03.09.2010 21:31, schrieb Sven Barth: On 03.09.2010 18:02, Marco van de Voort wrote: Second, does FPC understand tail recursion? Depends on version, do fpc -i |grep -i tailrec to find out more. O.o Ok... now I'm officially impressed.

Re[2]: [fpc-pascal] Recursion optimization by compiler

2010-09-04 Thread José Mejuto
Hello FPC-Pascal, Saturday, September 4, 2010, 9:07:57 AM, you wrote: RB This a misunderstanding of way recursion can be flattened RB into a loop. It's especially not useful because the transformed RB version still uses a stack, so it doesn't execute in constant RB space. I know, but as far as

Re: [fpc-pascal] ARM-Cortex port

2010-09-04 Thread Florian Klämpfl
Am 26.08.2010 18:20, schrieb Geoffrey Barton: On 24 Aug 2010, at 21:52, Florian Klaempfl wrote: Am 24.08.2010 11:53, schrieb Geoffrey Barton: using Jonas and Jeppe's answers to my idiot questions in this forum, and Jeppe's startup code for the STM32F, I have FPC cross-compiling for the

Re: [fpc-pascal] Recursion optimization by compiler

2010-09-04 Thread Florian Klämpfl
Am 04.09.2010 15:08, schrieb Sven Barth: On 28.08.2010 11:57, Florian Klämpfl wrote: Am 03.09.2010 21:31, schrieb Sven Barth: On 03.09.2010 18:02, Marco van de Voort wrote: Second, does FPC understand tail recursion? Depends on version, do fpc -i |grep -i tailrec to find out more. O.o