mikroC PRO for dsPIC30/33 and PIC24 Command Line Options
Usage: mikroCdsPIC.exe [-<opts> [-<opts>]] [<infile> [-<opts>]] [-<opts>]]
Infile can be of *.c, *.mcl and *.pld type.
The following parameters are valid :
-P <devicename>: MCU for which compilation will be done.-FO <oscillator>: Set oscillator [in MHz].-SP <directory>: Add directory to the search path list.-IP <directory>: Add directory to the#includesearch path list.-N <filename>: Output files generated to file path specified by filename.-B <directory>: Save compiled binary files (*.mcl) to 'directory'.-O: Miscellaneous output options.-DBG: Generate debug info.-L: Check and rebuild new libraries.-DL: Build all files as libraries.-Y: Dynamic link for string literals.-UICD: ICD build type.-EH <filename>: Full EEPROM HEX file name with path.-LHF: Generate Long hex format.-GC: Generate COFF file.
Example:
mikroCdsPIC.exe -MSF -DBG -p30F4013 -Y -DL -O11111114 -fo80 -N"C:\Lcd\Lcd.mcpds" -SP"C:\Program Files\Mikroelektronika\mikroC PRO for dsPIC\Defs"
     -SP"C:\Program Files\Mikroelektronika\mikroC PRO for dsPIC\Uses" -SP"C:\Lcd\" "Lcd.c" "__Lib_Math.mcl" "__Lib_MathDouble.mcl"
     "__Lib_System.mcl" "__Lib_Delays.mcl" "__Lib_LcdConsts.mcl" "__Lib_Lcd.mcl"
Parameters used in the example:
-MSF :Short Message Format; used for internal purposes by IDE.-DBG :Generate debug info.-p30F4013 :MCU 30F4013 selected.-Y :Dynamic link for string literals enabled.-DL :All files built as libraries.-O11111114 :Miscellaneous output options :- 1. Generate ASM file, valid values 0 or 1.
- 2. Include HEX opcodes, valid values 0 or 1.
- 3. Include ROM constants, valid values 0 or 1.
- 4. Include ROM addresses, valid values 0 or 1.
- 5. Generate LST file, valid values 0 or 1.
- 6. Include Debug Info, valid values 0 or 1.
- 7. Include Source Lines in Output Files, valid values 0 or 1.
- 8. The optimization level, valid values from 0 to 5.
-fo80 :Set oscillator frequency [in MHz].-N"C:\Lcd\Lcd.mcpds" -SP"C:\Program Files\Mikroelektronika\mikroC PRO for dsPIC\Defs\" :Output files generated to file path specified by filename.-SP"C:\Program Files\Mikroelektronika\mikroC PRO for dsPIC\Defs\" :Add directory to the search path list.-SP"C:\Program Files\Mikroelektronika\mikroC PRO for dsPIC\Uses\" :Add directory to the search path list.-SP"C:\Lcd\" :Add directory to the search path list."Lcd.c" "__Lib_Math.mcl" "__Lib_MathDouble.mcl" "__Lib_System.mcl" "__Lib_Delays.mcl" "__Lib_LcdConsts.mcl" "__Lib_Lcd.mcl" :Specify input files.
Copyright (c) 2002-2012 mikroElektronika. All rights reserved.
What do you think about this topic ? Send us feedback!
What do you think about this topic ? Send us feedback!



