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..
"The startup file normally calls the initialization function of the C library. The initialization function of the C library normally calls main()."
Somewhere in that chain is also the thing that initialises the user's 'C' variables...
So, back to Erik's point, you really should make sure that you have a main() function in 'C' as your programs "entry point" - which was effectively also my point in saying, "you would generally just be calling from 'C' to assembler; not vice-versa"