mplab c18 c compiler getting started - Computer & Information Science
mplab c18 c compiler getting started - Computer & Information Science
mplab c18 c compiler getting started - Computer & Information Science
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
MPLAB ® C18 C Compiler Getting Started<br />
1.4 DIRECTORIES<br />
MPLAB C18 can be installed anywhere on the PC. Its default installation directory is<br />
the C:\mc<strong>c18</strong> folder.<br />
Figure 1-2 shows the directory structure for the typical installation of MPLAB C18:<br />
FIGURE 1-2: MPLAB ® C18 DIRECTORY STRUCTURE<br />
The MPLAB C18 installation directory contains the readme file for the <strong>compiler</strong>, the<br />
assembler and the linker. A description of the subdirectories’ contents are shown in<br />
Table 1-1:<br />
TABLE 1-1: MPLAB ® C18 SUBDIRECTORY DESCRIPTIONS<br />
Directory Description<br />
bin Contains the executables for the <strong>compiler</strong> and linker. These are<br />
described in more detail in Section 1.5 “About the Language Tools”.<br />
doc Contains the documentation for the C18 C <strong>compiler</strong>. Will be created<br />
only if documentation is selected for installation (see<br />
Section 2.2.5 “Select Components” and Figure 2-5).<br />
example Contains sample applications to help users get <strong>started</strong> with<br />
MPLAB C18, including the examples discussed in this document.<br />
These may differ slightly from the code used in Chapter 4. “Beginning<br />
Programs”.<br />
h Contains the header files for the standard C library and the<br />
processor-specific libraries for the supported PICmicro ® MCUs.<br />
lib Contains the standard C library (clib.lib or clib_e.lib), the<br />
processor-specific libraries (p18xxxx.lib or p18xxxx_e.lib,<br />
where xxxx is the specific device number) and the start-up modules<br />
(c018.o, c018_e.o, c018i.o, c018i_e.o, c018iz.o,<br />
c018iz_e.o).<br />
lkr Contains the linker script files for use with MPLAB C18.<br />
mpasm Contains the MPASM assembler and the assembly header files for the<br />
devices supported by MPLAB C18 (p18xxxx.inc).<br />
src Contains the source code, in the form of C and assembly files, for the<br />
standard C library, the processor-specific libraries and the start-up<br />
modules. There are subfolders for Extended and Traditional<br />
(Non-Extended) modes.<br />
DS51295F-page 12 © 2005 Microchip Technology Inc.