7.117 --output_dir=directory_name

Specifies an output directory for object files and depending on the other options you use, certain other types of compiler output.

The directory for assembler output can be specified using --asm_dir. The directory for dependency output can be specified using --depend_dir. The directory for --list output can be specified using --list_dir. If these options are not used, the corresponding output is placed in the directory specified by --output_dir, or if --output_dir is not specified, in the default location (for example, the current directory).
The executable is placed in the default location.

Example

armcc -c --output_dir=obj f1.c f2.c
Result:
obj/f1.o
obj/f2.o
Related reference
7.10 --asm_dir=directory_name
7.36 --depend_dir=directory_name
7.92 --list_dir=directory_name
Non-ConfidentialPDF file icon PDF versionARM DUI0375E
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.