Lars Noschinski schrieb:

Then you can use the --defsym option to the linker to tell the main
program where to find those entry points.

As alternative you can simply type cast a constant into a function
pointer and dereference it. This way no special build procedure is
needed.

typedef void(*func_type)();

#define func ((func_type)0x1234)

    func();


PS: 0x1234 must be the word address of the table entry.

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

Reply via email to