Hi Georg,

thanks for your info!

> > Disassembly of section .text:
> > 00000000 <__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 < _VECTORS_SIZE)
.weak   \name
.set    \name, __bad_interrupt
XJMP    \name   
.endif  
.endm   
 
.section .vectors,"ax",@progbits
.global __vectors
.func   __vectors
__vectors:
XJMP    __init
vector  __vector_1
vector  __vector_2

The resolution and assignment is only done by the name of the function. Quite 
simple after finding the stuff :-)

Thanks!
Klaus


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to