/* Example for code of different overlay pages in one source file. * You have to keep the relocation tables in your final executable ELF file to be able to debug this. * (Use linker option "--emit-relocs" for GCC and "-r2" for DIAB) */ __attribute__ ((section (".page1"))) int func5( int a, char b, long c ) /* multiple arguments */ { return a+b*c; } __attribute__ ((section (".page2"))) void inc(int* x) { (*x)++; }