Re: [avr-gcc-list] Internal handling of interrupt vectors and jump table

2015-08-12 Thread Klaus Rudolph
Hi Georg, thanks for your info! > > Disassembly of section .text: > > <__vector_7>: > > The .vectors section is implemented in AVR-LibC's gcrt1.S. > ISR and similar macros are provided by interrupt.h. Yes, I found the tricky part of the job. .macro vector name .if (. - __vectors < _

Re: [avr-gcc-list] Internal handling of interrupt vectors and jump table

2015-08-11 Thread Georg-Johann Lay
Am 08/11/2015 um 12:04 PM schrieb Klaus Rudolph: can someone explain how interrupt vectors are handled in gcc internally? ISR functions are implemented as function attributes, i.e. there are avr-specific function attribute (__interrupt__, __signal__) which turn an ordinary function into an IS

[avr-gcc-list] Internal handling of interrupt vectors and jump table

2015-08-11 Thread Klaus Rudolph
Hi, can someone explain how interrupt vectors are handled in gcc internally? OK, I saw that in /opt/avr_5.2.0/lib/gcc/avr/5.2.0/../../../../avr/lib/avr5/crtatmega32.o the empty vector table is included, like: Disassembly of section .vectors: <__vectors>: 0: 0c 94 00 00 jmp