I've forgotten the gcc options, so I've summarized them (updated from time to time).
** GCC ** stands for ** GNU Compiler Collection **.
The GCC command is gcc
.
Developed by the GNU Project, it brings together compilers for various programming languages.
option | Description |
---|---|
-dumpversion |
Show version |
--version |
Show version(In detail) |
-v |
Show version(In more detail) |
-o <file_name> |
Specify the name of the generated program( a.out Can be other than) |
-Wall |
All general warning options turned on |
-O , -O1 |
Optimize(The higher the number, the higher the optimization level) |
-O2 |
Optimize(Specify this if you have no particular idea) |
-O3 |
Optimize |
--help |
View help |
Recommended Posts