Once you have entered your program you can think about compiling it. Compiling the program is the first step in the process of getting the program running on our target machine. It converts the program into assembler.

To compile the program click on the compile button:

The compiler will compile the first.c source file: Fig 1.

Two additional windows will now open, an Output window and an assembler window. The assembler window contains the actual instructions which will drive the PIC. The output window shows if there were any problems. The program in fig. 1 compiled OK, so there were no errors. If you have not entered the program exactly as above you might get something like: Fig 2.

There is something wrong with the program in fig 2. (see if you can find out what). The compiler has identified the line where it thinks the problem is, and given a somewhat unhelpful message. Note that the line the compiler has noticed the error is not always the line where the mistake was made.

Once you have compiled the program you can now assemble it.

Fig 1.
Click for full size image

Fig 2.
Click for full size image