??? 05/14/09 11:58 Read: times |
#165326 - no (keil?) C will work if the main is in asm Responding to: ???'s previous message |
That's not strictly true.
The thing is, the tools rely on seeing a 'C' main as their cue to do all the other "magic" that is necessary for 'C' runtime support. If there is no 'C' main, the tools just assume that it's not a 'C' project, so they do no 'C' stuff. You can, of course, try to work out what all this stuff is, and do it all "manually" - but it's probably just not worth it. In practice, if you want 'C' anywhere in your project, then there's really no point in not having a 'C' main - you can always start any critical ASM stuff that can't wait for main from the startup code... |