gcc: use short -o option for output (#8387)

This commit is contained in:
jxu
2022-08-23 12:02:42 -04:00
committed by GitHub
parent cecf8f2150
commit 17b6ad9943

View File

@@ -5,15 +5,15 @@
- Compile multiple source files into executable: - Compile multiple source files into executable:
`gcc {{path/to/source1.c path/to/source2.c ...}} --output {{path/to/output_executable}}` `gcc {{path/to/source1.c path/to/source2.c ...}} -o {{path/to/output_executable}}`
- Allow warnings, debug symbols in output: - Allow warnings, debug symbols in output:
`gcc {{path/to/source.c}} -Wall -Og --output {{path/to/output_executable}}` `gcc {{path/to/source.c}} -Wall -Og -o {{path/to/output_executable}}`
- Include libraries from a different path: - Include libraries from a different path:
`gcc {{path/to/source.c}} --output {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}` `gcc {{path/to/source.c}} -o {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}`
- Compile source code into Assembler instructions: - Compile source code into Assembler instructions: