Precautions for compilation / assembly (precautions to be taken when compiling / assembling programs)
Microcomputer Development System Frequently Asked Questions (FAQs) NO.EX9900201
- Answer
-
- Compiling with debugging options
- Some of debug function are realized by using a debug information contained in the object file that is generated by compiler or assember.The target program must be compiled and assembled with debugging options in order to get debugging information. Be sure to specify options below:
Modules compiled and assembled without these options do not allow access of the source program or variable and function types.Tool Option Function of the option C compiler -g option Outputs debugging information about symbols and source files Assembler -g option Outputs debugging information about symbols Linker -ga option Outputs debugging information about all of the input files - About the level of optimization
- The level of optimization does not matter. The higher the optimization level, however, the more complicated the relationship between the source program and the object program, so execution may not always proceed in the source program order in step execution and the like. There is no way around this.





