how compile programm by gcc in debug mode with maximal protection and leak detection
- User
how compile programm by gcc in debug mode with maximal protection and leak detection
- Assistant
To compile a program using
gcc(GNU Compiler Collection) in debug mode with maximal protection and leak detection, you can use several compiler options. Below are recommended options to achieve these goals.Compile Options
-
Enable Debugging Information: This helps in debugging by including symbols in the executable.
-