-g
-g1
-g2
-g3
The -g option instructs the compiler and assembler to generate source level debugging information.
The -g1 option instructs the compiler to generate backtrace and line number debugging information.
The -g2 option instructs the compiler to generate backtrace, line number and variable display debugging information.
The -g3 option instructs the compiler to generate backtrace, line number, variable display and macro display debugging information.
The default is to not generate any debugging information.