1.44 -o

Specifies the name of the output file.

The option -o filename specifies the name of the output file produced by the compiler.
The option -o- redirects output to the standard output stream when used with the -c or -S options.

Default

If you do not specify a -o option, the compiler names the output file according to the conventions described by the following table.

Table 1-1 Compiling without the -o option

Compiler option Action Usage notes
-c Produces an object file whose name defaults to the name of the input file with the filename extension .o -
-S Produces an output file whose name defaults to the name of the input file with the filename extension .s -
-E Writes output from the preprocessor to the standard output stream -
(No option) Produces temporary object files, then automatically calls the linker to produce an executable image with the default name of a.out None of -o, -c, -E or -S is specified on the command line
Non-ConfidentialPDF file icon PDF versionARM DUI0774E
Copyright © 2014-2016 ARM. All rights reserved.