mikroC
making it simple...
mikroC - C Compiler for Microchip PIC microcontrollers
COMPILATION
When you have created the project and written the source code, you will want to
compile it. Select Project > Build from drop-down menu, or click Build Icon, or
simply hit CTRL+F9.
Compile Icon.
Progress bar will appear to inform you about the status of compiling. If there are
errors, you will be notified in the Error Window. If no errors are encountered,
mikroC will generate output files.
Output Files
Upon successful compilation, mikroC will generate output files in the project fold-
er (folder which contains the project file
). Output files are summarized
.ppc
below:
Intel HEX file (
)
.hex
Intel style hex records. Use this file to program PIC MCU.
Binary mikro Compiled Library (
)
.mcl
Binary distribution of application that can be included in other projects.
List File (
)
.lst
Overview of PIC memory allotment: instruction addresses, registers, routines, etc.
Assembler File (
)
.asm
Human readable assembly with symbolic names, extracted from the List File.
Assembly View
After compiling your program in mikroC, you can click View Assembly Icon or
select Project › View Assembly from drop-down menu to review generated assem-
bly code (.asm file) in a new tab window. Assembly is human readable with sym-
View Assembly
bolic names. All physical addresses and other information can be found in
Icon.
Statistics or in list file (.lst).
If the program is not compiled and there is no assembly file, starting this option
will compile your code and then display assembly.
page
26
MikroElektronika: Development tools - Books - Compilers
Need help?
Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?