cl
The Microsoft C/C++ compiler for compiling and linking source code files. tldr-pages
On Windows
Windows
Compile a source file
cl path\to\source.cIdentifyCompile and create an executable with a custom name
cl /Fe path\to\output_executable path\to\source.cIdentifyCompile a source file with optimization enabled
cl /O2 path\to\source.cIdentifyCompile a source file and create a debug executable
cl /Zi path\to\source.cIdentifyCompile multiple source files
cl path\to\source1.c path\to\source2.c ...IdentifySpecify the output directory for compiled files
cl /Fo path\to\output_directory\ path\to\source.cIdentifyCompile with warnings as errors
cl /WX path\to\source.cIdentify