This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C and Assembly

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..

Parents
  • 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

Reply
  • 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

Children