Microprocessors: From Assembly Language to C Using thePIC18Fxx2

Appendix C: HI-TECH PICC-18 C Compiler Demo for the PIC18F242

On the CD This appendix contains a brief introduction to the HI-TECH PICC-18 C compiler demo that is found in the hitech subdirectory on this book's companion CD-ROM. The PICC-18 C compiler is enabled for 120 days after installation and only produces code for the 18F242. The executable found in the hitech subdirectory is self-installing; MPLAB should be installed before installing the PICC-18 compiler. Some compiler options are disabled in this demo compiler. These options are:

  • -D to predefine macro symbols

  • -L to specify libraries to be scanned by the linker

  • -L-opt to allow specification of additional linker options

  • -O-opt to allow specification of additional OBJTOHEX options

  • -M map file generation

  • -NORT to disable runtime code inclusion

  • -PRE to only preprocess source files

  • -RESRAM to reserve RAM ranges

  • -RESROM to reserve ROM ranges

  • -U to undefine macro symbols

  • -V for verbose compilation messages

In practice, the only effect of the demo limitations on the C programs included in this book is the lack of printf support for floats and longs, due to the omission of the -L compiler flag. Only a few book examples use printf statements with float/long data types for program output, and the lack of support does not affect the overall program functionality.

During installation of the PICC-18 demo compiler, you will be asked if you want to install the MPLAB 6 PICC-18 Toolsuite Plugin. You should answer "yes" to this question, as this allows you to build...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Integrated Development Environment (IDE)
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.