3.4 Assembler Option Descriptions

Most aspects of the build process can be controlled using options passed to the assembler's command-line driver, pic-as.

All options are case sensitive and are identified by leading single or double dash character, e.g. -o or --version.

Use the --help option to obtain a brief description of accepted options on the command line.

If you are compiling from within the MPLAB X IDE, it will issue explicit options to the assembler that are based on the selections in the project's Project Properties dialog. The default project options might be different to the default options used by the assembler when running on the command line, so you should review your IDE properties to ensue that they are acceptable.

The summary of all available driver options tabulated below is followed by a detailed description of each option.

Table 3-1. PIC Assembler Driver Options
Option

(Links to explanatory section)

Controls
-cGeneration of an intermediate object file
-Dmacro=textDefinition of preprocessor symbols
-dMList all defined macros
-EThe generation of preprocessed-only files
--fill=optionsFilling of unused memory
-fmax-errorsNumber of errors before aborting
-gformatThe type of debugging information generated
-HList included header files
--helpDisplay help information only
-IdirDirectories searched for headers
-llibraryWhich libraries are scanned
-LdirDirectories searched for libraries
-mcallgraph=typeThe type of callgraph printed in the map file
-mchecksum=specsThe generation and placement of a checksum or hash
-mcpu=deviceThe target device that code will be built for
-mdfp=pathWhich device family pack to use
-m[no-]downloadHow the final HEX file is conditioned
-misa=setSelect PIC18 instruction set
-mmaxichipUse of a hypothetical device with full memory
-mprint-devicesChip information only
-mram=rangesData memory that is available for the program
-mreserve=rangesWhat memory should be reserved
-mrom=rangesProgram memory that is available for the program
-mserial=optionsThe insertion of a serial number in the output
-msummary=typesWhat memory summary information is produced
-mwarn=levelThe threshold at which warnings are output
-o fileSpecify output file name
-save-tempsWhether intermediate files should be kept after compilation
-UmacroThe undefining of preprocessor symbols
-vVerbose compilation output
--versionDisplay of assembler version information
-wThe suppression of all warning messages
-Wa,optionOptions passed to the assembler
-W[no-]errorPromote warnings to errors
-Wp,optionOptions passed to the preprocessor
-Wl,optionOptions passed to the linker
-xlanguageThe language in which the source files are interpreted
-Xassembler optionOptions passed to the assembler
-Xpreprocessor optionOptions passed to the preprocessor
-Xlinker optionSystem-specific options to passed to the linker