Compiler flags
Summary
Flag list
Short name |
Long name |
Effect |
|---|---|---|
|
|
Display the current version of |
|
|
Lex the source code of a file and display the tokens |
|
|
Parse the source code of a file to check eventual syntax errors |
|
|
Get the AST of the source code of a file |
|
|
Only execute the preprocessor |
|
|
Only generate the intermediate code |
|
|
Compile to object file |
|
|
Compile to executable file |
|
|
Name of the output file (without the extension) |
|
|
Change compiler backend (default is “c”) |
|
|
Change target compiler (default is clang) |
|
|
Pass flags to the target compiler |
|
Do not remove intermediate files |
|
|
Disable obligation to define main function |
|
|
Disable dependencies to the standard library |
Note: -nostd is useless because there is no standard library yet.