add info in readme about changing optimization when debugging
This commit is contained in:
parent
746218052e
commit
9a4c59ecfd
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue