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 view my .m51 file for the call tree, it looks like this: SEGMENT +--> CALLED SEGMENT --------------------- ?C_C51STARTUP +--> ?PR?MAIN?MAIN +--> ?C_INITSEG ...... the problem is that i never code the segment like"C_INITSEG" in my program. why does it present? it occupied my code memory,how can i do with this?
Whenever you write a program in 'C' for any target, the compiler (any compiler) will always generate a certain amount of code to initialise its runtime environment - including initialising variables, setting up runtime libraries, etc, etc C51STARTUP, C_INITSEG, etc, are part of C51's runtime initialisation.