From 9a4c59ecfdb33152c8b94c850bca5896fcd25e24 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sat, 5 Jul 2025 13:07:56 -0400 Subject: [PATCH] add info in readme about changing optimization when debugging --- readme.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/readme.txt b/readme.txt index ff023fa..77c3157 100644 --- a/readme.txt +++ b/readme.txt @@ -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 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 Calcite is Copyright 2025 Benji Dial, and licensed under the GNU GPL v3. See