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?
This segment are generated by INIT.51 and contains code for setup variables that were explictily initialized. Chris
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.