Compiler Flags
Options that control warnings, optimisation, standards and debug info.
Easy
-std=c++20 -Wall -Wextra -Wpedantic -Werror -O2 -g; -Os for size on MCUs; -march=native for local speed.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.