We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I want to know how to write assmebly code and c code in same program.... i mean i need to write some function in assembly and some in C code.. i should be able to call both of them from either codes.. how to do this.. help me out..
I think you would find that ?C_START is a run-time library function that (in turn) calls the traditional C function main. Almost certainly, the purpose of this mechanism would be to ensure that the critical parts of the run-time library are pulled into the executable
I 'know' (because there is no other place) that ?C_START (also) initializes all global values that are to be initialized to other than zero.
Erik
Follow up to the follow up ...
If you don't want to modify the startup code, then just be explicit and include the run-time library into the project (or, for the non-ide fraternity, the linker command line).
Again, hey presto, main in assembler.