07.04.2013 Views

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

16-Bit C <strong>Compiler</strong> User’s Guide<br />

1.4 COMPILER AND OTHER DEVELOPMENT TOOLS<br />

<strong>MPLAB</strong> C <strong>Compiler</strong> <strong>for</strong> <strong>PIC24</strong> <strong>MCUs</strong> <strong>and</strong> <strong>dsPIC</strong> <strong>DSCs</strong> compiles C source files,<br />

producing assembly language files. These compiler-generated files are assembled <strong>and</strong><br />

linked with other object files <strong>and</strong> libraries to produce the final application program in<br />

executable COFF or ELF file <strong>for</strong>mat. The COFF or ELF file can be loaded into the<br />

<strong>MPLAB</strong> IDE, where it can be tested <strong>and</strong> debugged, or the conversion utility can be used<br />

to convert the COFF or ELF file to Intel ® hex <strong>for</strong>mat, suitable <strong>for</strong> loading into the comm<strong>and</strong>-line<br />

simulator or a device programmer. See Figure 1-1 <strong>for</strong> an overview of the<br />

software development data flow.<br />

FIGURE 1-1: SOFTWARE DEVELOPMENT TOOLS DATA FLOW<br />

Assembly Source<br />

Files (*.s)<br />

Archiver (Librarian)<br />

Object File Libraries<br />

(*.a)<br />

C Source Files<br />

(*.c)<br />

C <strong>Compiler</strong><br />

Source Files (*.s)<br />

Assembler<br />

COFF/ELF Object Files<br />

(*.o)<br />

DS51284H-page 8 © 2008 <strong>Microchip</strong> Technology Inc.<br />

Linker<br />

Executable File<br />

(*.exe)<br />

<strong>Compiler</strong><br />

Driver<br />

Program<br />

<strong>MPLAB</strong> ® IDE<br />

Debug Tool<br />

Comm<strong>and</strong>-Line<br />

Simulator

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!