您的位置: 首页 > 文章 > gdb -O2 gdb -O2 分类: 文章 • 2025-01-22 18:09:34 gdb -O2 will cause, when debugging, some variable can not be print, we will see "optimized out" dont use the -O2 option, every thing will be fine, but add O2 in makefile, will make the process run faster