C6000 programming option to retain compilation and optimization information[Copy link]
Option -k to retain compilation and optimization information: Generate assembly language files after retaining optimization. -s: Add optimization information to the assembly language file. If not, add the C language source program as a comment. -mw: Add software pipeline information to the assembly language file. Options related to debugging and profiling -g: Allow symbolic debugging, include symbolic information and line number information in the "out" file, and debug and profile at the C language level. Using -g, -mt and -o3 together can ensure maximum optimization while being able to perform symbolic debugging. -mg: Allows profiling of optimized programs. Include symbolic information and very little line number information in the "out" file. Allows profiling of C language functions. If these two options are used together, the -g option may be ignored, and the result is the same as using only -mg.