Re: [fpc-devel] Interrupt vector table generation

2011-03-21 Thread Jeppe Johansen
Den 13-03-2011 16:37, Florian Klämpfl skrev: Am 13.03.2011 16:34, schrieb Jonas Maebe: On 13 Mar 2011, at 16:31, Florian Klämpfl wrote: Am 06.03.2011 22:46, schrieb Jeppe Johansen: Further, a future benefit of using the interrupt keyword could be generation of procedure exit code. Some platfo

Re: [fpc-devel] Interrupt vector table generation

2011-03-13 Thread Florian Klämpfl
Am 13.03.2011 16:34, schrieb Jonas Maebe: > > On 13 Mar 2011, at 16:31, Florian Klämpfl wrote: > >> Am 06.03.2011 22:46, schrieb Jeppe Johansen: >>> Further, a future benefit of using the interrupt keyword could be >>> generation of procedure exit code. Some platforms need a special "return >>> f

Re: [fpc-devel] Interrupt vector table generation

2011-03-13 Thread Jonas Maebe
On 13 Mar 2011, at 16:31, Florian Klämpfl wrote: > Am 06.03.2011 22:46, schrieb Jeppe Johansen: >> Further, a future benefit of using the interrupt keyword could be >> generation of procedure exit code. Some platforms need a special "return >> from exception/interrupt" instructions at the end of

Re: [fpc-devel] Interrupt vector table generation

2011-03-13 Thread Florian Klämpfl
Am 06.03.2011 22:46, schrieb Jeppe Johansen: > As I wrote a while back, I would like to make it easier to handle > interrupts when using fpc for embedded work After reading the related discussion, I think the approach is fine. > Further, a future benefit of using the interrupt keyword could be >

Re: [fpc-devel] Interrupt vector table generation

2011-03-07 Thread Marco van de Voort
In our previous episode, Jeppe Johansen said: > > the name of the interrupt routine is hardwired to the table entry. This > > allows to get rid of the number constants (which are maintained centrally) > > all together. > > > > It also allows to keep code portable between different versions that mig

Re: [fpc-devel] Interrupt vector table generation

2011-03-07 Thread Jeppe Johansen
Den 07-03-2011 13:49, Marco van de Voort skrev: In our previous episode, Jeppe Johansen said: A better idea, I think, is to use the old interrupt procedure directive. For some embedded platforms simply allow also specifying a interrupt vector/index after the interrupt keyword. Ex: procedure USA

Re: [fpc-devel] Interrupt vector table generation

2011-03-07 Thread Marco van de Voort
In our previous episode, Jeppe Johansen said: > A better idea, I think, is to use the old interrupt procedure directive. > For some embedded platforms simply allow also specifying a interrupt > vector/index after the interrupt keyword. Ex: > > procedure USARTRxInterrupt; interrupt 10; > begin >

Re: [fpc-devel] Interrupt vector table generation

2011-03-07 Thread Jeppe Johansen
Den 07-03-2011 09:43, Mark Morgan Lloyd skrev: Jeppe Johansen wrote: As I wrote a while back, I would like to make it easier to handle interrupts when using fpc for embedded work The current solution is to use procedure variables with indirect jumps in inline assembler. While that works okay it

Re: [fpc-devel] Interrupt vector table generation

2011-03-07 Thread Mark Morgan Lloyd
Jeppe Johansen wrote: As I wrote a while back, I would like to make it easier to handle interrupts when using fpc for embedded work The current solution is to use procedure variables with indirect jumps in inline assembler. While that works okay it takes up a lot of space on devices with lots o

Re: [fpc-devel] Interrupt vector table generation

2011-03-06 Thread Ralf A. Quint
At 06:19 PM 3/6/2011, waldo kitty wrote: On 3/6/2011 16:46, Jeppe Johansen wrote: A better idea, I think, is to use the old interrupt procedure directive. For some embedded platforms simply allow also specifying a interrupt vector/index after the interrupt keyword. Ex: procedure USARTRxInterrup

Re: [fpc-devel] Interrupt vector table generation

2011-03-06 Thread waldo kitty
On 3/6/2011 16:46, Jeppe Johansen wrote: A better idea, I think, is to use the old interrupt procedure directive. For some embedded platforms simply allow also specifying a interrupt vector/index after the interrupt keyword. Ex: procedure USARTRxInterrupt; interrupt 10; begin // Handler code end

[fpc-devel] Interrupt vector table generation

2011-03-06 Thread Jeppe Johansen
As I wrote a while back, I would like to make it easier to handle interrupts when using fpc for embedded work The current solution is to use procedure variables with indirect jumps in inline assembler. While that works okay it takes up a lot of space on devices with lots of interrupts, and intro