Looking at the demo project that came with my AT91SAM7S64-IAR kit, the assembly file "Cstartup.s79" contains the following code:
Code:
PROGRAM ?RESET
RSEG INTRAMSTART_REMAP
RSEG INTRAMEND_REMAP
RSEG ICODE:CODE:ROOT(2)
CODE32 ; Always ARM mode after reset
org 0
reset
After the 'reset' tag, it goes on to contain all of the various reset and interrupt vectors. I think you have to have your C or C++ project referenced by a startup assembly file, which initializes the microcontroller and then calls your main function from your C files.
Does this help?
-t