SW006015 Microchip Technology, SW006015 Datasheet - Page 11

C COMPILER MPLAB C32

SW006015

Manufacturer Part Number
SW006015
Description
C COMPILER MPLAB C32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheets

Specifications of SW006015

Supported Families
PIC32MX5, MX6, And MX7
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC32 MCUs
Tool Function
Compiler
Supported Devices
PIC32 MCUs
Tool Type
Compiler
Processor Series
PIC32
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
1.1
1.2
1.3
1.4
© 2007 Microchip Technology Inc.
INTRODUCTION
HIGHLIGHTS
OVERVIEW
FILE NAMING CONVENTIONS
This chapter discusses command line usage of the MPLAB C32 C compiler, attributes,
pragmas and data representation.
Items discussed in this chapter are:
• Overview
• File Naming Conventions
• Data Storage
• Predefined Macros
• Attributes and Pragmas
• Command Line Options
• Compiling a Single File on the Command Line
• Compiling Multiple Files on the Command Line
The compilation driver program (pic32-gcc) compiles, assembles and links C and
assembly language modules and library archives. Most of the compiler command line
options are common to all implementations of the GCC toolset. A few are specific to
the MPLAB C32 C compiler.
The basic form of the compiler command line is:
pic32-gcc [options] files
The available options are described in Section 1.8 “Command Line Options”.
For example, to compile, assemble and link the C source file hello.c, creating the
absolute executable hello.out.
pic32-gcc -o hello.out hello.c
The compilation driver recognizes the following file extensions, which are case
sensitive.
TABLE 1-1:
file.c
file.h
file.i
file.o
file.s
Note:
Extensions
Chapter 1. Language Specifics
Command line options and file name extensions are case sensitive.
FILE NAMES
A C source file that must be preprocessed.
A header file (not to be compiled or linked).
A C source file that has already been pre-processed.
An object file.
An assembly language source file.
MPLAB
®
Definition
C32 C COMPILER
USER’S GUIDE
DS51686A-page 7

Related parts for SW006015