You copied the Doc URL to your clipboard.


Reads a list of armclang options from a file.



Where file is the name of a file containing armclang options to include on the command line.


The options in the specified file are inserted in place of the @file option.

Use whitespace or new lines to separate options in the file. Enclose strings in single or double quotes to treat them as a single word.

You can specify multiple @file options on the command line to include options from multiple files. Files can contain more @file options.

If any @file option specifies a non-existent file or circular dependency, armclang exits with an error.


To use Windows-style file paths on the command-line, you must escape the backslashes. For example:

-I"..\\my libs\\".


Consider a file options.txt with the following content:

-I"../my libs/"
--target=aarch64-arm-none-eabi -mcpu=cortex-a57

Compile a source file main.c with the following command line:

armclang @options.txt main.c

This command is equivalent to the following:

armclang -I"../my libs/" --target=aarch64-arm-none-eabi -mcpu=cortex-a57 main.c