Page 170 - PDA Robotics Using Your Personal Digital Assistant to Control Your Robot
P. 170

PDA 07  5/27/03  8:44 AM  Page 146
                                                     PDA Robotics
                          ment  very  efficiently  normal  C  constructs,  as  well  as  input/output
                          operations and bit twiddling operations.
                          The Command Line Compiler

                          The command line compiler is invoked with the following command:

                          CCSC   options   cfilename
                          Valid options:

                          +FB      Select PCB (12-bit).   -D     Do not create debug file.
                          +FM      Select PCM (14-bit).   +DS    Standard .COD format debug file.
                          +FH      Select PCH (PIC18XXX).  +DM   .MAP format debug file.
                          +F7      Select PC7 (PIC17XXX).  +DC   Expanded .COD format debug file.
                          +FS      Select PCS (SX).       +Yx    Optimization level x (0-9).
                          +ES      Standard error file.   +T     Create call tree (.TRE).
                          +EO      Old error file format.  +A    Create stats file (.STA).
                          -J       Do not create PJT file.  -M   Do not create symbol file.

                          The xxx in the following is optional. If included it sets the file extension:

                          +LNxxx   Normal list file.      +O8xxx  8-bit Intel HEX output file.
                          +LSxxx   MPASM format list file.  +OWxxx  16-bit Intel HEX output file.
                          +LOxxx   Old MPASM list file.   +OBxxx  Binary output file.
                          +LYxxx   Symbolic list file.    -O     Do not create object file.
                          -L       Do not create list file.
                          +P       Keep compile status window up after compile.
                          +Pxx     Keep status window up for xx seconds after compile.
                          +PN      Keep status window up only if there are no errors.
                          +PE      Keep status window up only if there are errors.
                          +Z       Keep scratch and debug files on disk after compile.
                          I="..."  Set include directory search path, for example:
                                   I="c:\picc\examples;c:\picc\myincludes"If no I= appears on the command
                                   line the .PJT file will be used to supply the include file paths.
                          #xxx="yyy" Set a global #define for id xxx with a value of yyy, example:#debug="true"
                          +STDOUT  Outputs errors to STDOUT (for use with third-party editors).
                          +SETUP   Install CCSC into MPLAB (no compile is done).
                          +V       Show compiler version (no compile is done).
                          +Q       Show all valid devices in database (no compile is done).

                          If  @filename  appears  on  the  CCSC  command  line  command  line,
                          options will be read from the specified file. Parameters may appear on
                          multiple lines in the file.


                          146
   165   166   167   168   169   170   171   172   173   174   175