[ ] Saturday, 11 April 2015 [ ]

Debug

  • -DDEBUG: enable DEBUG macros
  • -g: produce debugging information in the operating system's native format

This will enable debugging macro's in both clang and gcc. Interestingly, in clang's man page it states:
Note that Clang debug information works best at -O0



[1] -O0 Means "no optimization": this level compiles the fastest and generates the most debuggable code.

debug


$Id: diary,v 1.38 2025/01/01 22:43:54 fred Exp $