You copied the Doc URL to your clipboard.


This option instructs the compiler to read additional command-line options from a specified file. The options read from the file are added to the current command line.

Via commands can be nested within via files.





is the name of a via file containing options to be included on the command line.

If filename is unspecified, the compiler faults use of --via.


Given a source file main.c, a via file apcs.txt containing the line:

--apcs=/rwpi --no_lower_rwpi --via=L_apcs.txt

and a second via file L_apcs.txt containing the line:

-L--rwpi -L--callgraph

compiling main.c with the command line:

armcc main.c -L-o”main.axf" --via=apcs.txt

compiles main.c using the command line:

armcc --no_lower_rwpi --apcs=/rwpi -L--rwpi -L--callgraph -L-o"main.axf" main.c

See also