Skip to content
Discussion options

You must be logged in to vote

-O0: 不做任何优化,这是默认的编译选项。
-O0 Reduce compilation time and make debugging produce the expected results. This is the default.
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

-O0 原本就是不做任何优化 ,你可以看下 gcc 说明,即使不加,默认也是 -O0

你非要去掉,就 去掉 mode.debug rule 就行了。或者定义自己的 mode ,不用内置 debug rule

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@waruqi
Comment options

Answer selected by xumaofeng-jn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants