2.3.14. Default object extension

This option enables you to change the default extension for object files:

--default_extension ext

Enables you to change the extension for object files from the default extension (.o) to that specified by ext. The following example creates an object file called test.obj, instead of test.o:


armcc --default_extension obj -c test.c

Note

The -o filename option overrides this (see Specifying output format). For example, the following command still gives the specified object file the .o extension:


armcc --default_extension obj -o test.o -c test.c
Copyright © 2005 ARM Limited. All rights reserved.ARM DUI 0282B
Non-Confidential