mikroC

mikroC - C Compiler for Microchip PIC microcontrollers

making it simple...

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

Compile Icon. simply hit CTRL+F9.

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.

View Assembly

Icon.

Output Files

Upon successful compilation, mikroC will generate output files in the project folder (folder which contains the project file .ppc). Output files are summarized 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 assembly code (.asm file) in a new tab window. Assembly is human readable with symbolic names. All physical addresses and other information can be found in 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