2.2 Assembler Usage

The MPLAB® XC-DSC Assembler translates assembly source files into relocatable object files. These object files can then be put into an archive (MPLAB XC-DSC Object Archiver/Librarian) or linked with other relocatable object files and archives to create an executable file (MPLAB XC-DSC Object Linker). See the “MPLAB® XC-DSC C Compiler User’s Guide” (DS-50003589) for an overview of the tools process flow.

Typically the command-line driver, xc-dsc-gcc, is used to invoke the assembler as it can be passed assembler source files as input; however, the options for the assembler are supplied here for instances where the assembler is being called directly, or when options need to be set in the assembler tab assembler category of the Project Properties window.

The assembler command line may contain options and file names. For details on command line option syntax, see 3.1 Command-Line Syntax.

Note that the assembler will not produce any messages unless there are errors or warnings – there are no “assembly completed” messages. For more on messages, see Assembler Errors/Warnings/Messages.