mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-17 03:49:18 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,28 +10,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Compile a source file:
|
||||
|
||||
`cl {{path/to/source.c}}`
|
||||
`cl {{path o\source.c}}`
|
||||
|
||||
- Compile and create an executable with a custom name:
|
||||
|
||||
`cl /Fe {{path/to/output_executable}} {{path/to/source.c}}`
|
||||
`cl /Fe {{path o\output_executable}} {{path o\source.c}}`
|
||||
|
||||
- Compile a source file with optimization enabled:
|
||||
|
||||
`cl /O2 {{path/to/source.c}}`
|
||||
`cl /O2 {{path o\source.c}}`
|
||||
|
||||
- Compile a source file and create a debug executable:
|
||||
|
||||
`cl /Zi {{path/to/source.c}}`
|
||||
`cl /Zi {{path o\source.c}}`
|
||||
|
||||
- Compile multiple source files:
|
||||
|
||||
`cl {{path/to/source1.c path/to/source2.c ...}}`
|
||||
`cl {{path o\source1.c path o\source2.c ...}}`
|
||||
|
||||
- Specify the output directory for compiled files:
|
||||
|
||||
`cl /Fo {{path/to/output_directory}}/ {{path/to/source.c}}`
|
||||
`cl /Fo {{path o\output_directory}}/ {{path o\source.c}}`
|
||||
|
||||
- Compile with warnings as errors:
|
||||
|
||||
`cl /WX {{path/to/source.c}}`
|
||||
`cl /WX {{path o\source.c}}`
|
||||
|
||||
Reference in New Issue
Block a user