Compiler Getting Started GuidePreface Getting Started Using Common Compiler Options Mandatory armclang options Common Arm Compiler toolchain options Selecting source language options Selecting optimization options Building to aid debugging Linking object files to produce an executable Linker options for mapping code and data to target Passing options from the compiler to the linker Controlling diagnostic messages Selecting floating-point options Compilation tools command-line option rules Writing Optimized Code Assembling Assembly Code Using Assembly and Intrinsics in C or C++ Code Mapping Code and Data to the Target Overlays Embedded Software Development Building Secure and Non-secure Images Using Armv8‑ Overview of the Linker Getting Image Details SysV Dynamic Linking Overview of the fromelf Image Converter Using fromelf Overview of the Arm Librarian Overview of the armasm Legacy Assembler Supporting reference information
Compilation tools command-line option rules
2.11 Compilation tools command-line option rules
You can use command-line options to control many aspects of the compilation tools' operation. There are rules that apply to each tool.
armclang option rules
armclang follows the same syntax rules as GCC. Some options are preceded by a single dash
armasm, armar, armlink, and fromelf command-line syntax rules
The following rules apply, depending on the type of option:
Command-line syntax rules common to all tools
To compile files with names starting with a dash, use the POSIX
armlink -- -ifile_1
In some Unix shells, you might have to include quotes when using arguments to some command-line options, for example:
armlink obj1.o --keep='s.o(vect)'
of your data.