add info in readme about changing optimization when debugging

This commit is contained in:
Benji Dial 2025-07-05 13:07:56 -04:00
parent 746218052e
commit 9a4c59ecfd

View file

@ -38,6 +38,10 @@ On Debian, it is sufficient to run this command:
Then, just run "make debug". Calcite will be booted in QEMU, and GDB will be Then, just run "make debug". Calcite will be booted in QEMU, and GDB will be
attached to it. Use "c" or "continue" in GDB to start execution. attached to it. Use "c" or "continue" in GDB to start execution.
While debugging, it is useful to disable optimizations and enable debugging
information. In the makefile, under CC_EXTRA_FLAGS, you can change "-O3" to
"-Og -ggdb". Then, run "make clean" and then "make" again.
=== License === License
Calcite is Copyright 2025 Benji Dial, and licensed under the GNU GPL v3. See Calcite is Copyright 2025 Benji Dial, and licensed under the GNU GPL v3. See