mikroC PRO for AVR Command Line Options
Usage: mikroCAvr.exe [-<opts> [-<opts>]] [<infile> [-<opts>]] [-<opts>]]
<infile> can be of *.c, *.mcl and *.pld type.
The following options 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 #include 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.-C: Enable case sensitivity.-LHF: Generate Long hex format.-GC: Generate COFF file.-PF: Pass project file name to command line.-MSF: Short message format.-RA: Rebuild all sources in project.-EH <filename>: Full EEPROM HEX file name with path.-SSA: Enable SSA optimization.-BOOTOP <op>: Program memory configuration. Validopvalues :- 0 - Application (excluding Boot Flash Section)
- 1 - Application (including Boot Flash Section)
- 2 - Bootloader (only Boot Flash Section)
-BOOTSZ <size>: Bootloader Flash Section size in program words.
Example:
mikrocAvr.exe -MSF -DBG -pATMEGA16 -ES -C -O11111114 -fo8 -N"C:\Lcd\Lcd.mcpav" -SP"C:\Program Files\Mikroelektronika\mikroC PRO for AVR\Defs\"
     -SP"C:\Program Files\Mikroelektronika\mikroC PRO for AVR\Uses\LTE64KW\" -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.-pATMEGA16 :MCU ATMEGA16 selected.-C :Turn on case sensitivity.-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.
-fo8 :Set oscillator frequency [in MHz].-N"C:\Lcd\Lcd.mcpav" -SP"C:\Program Files\Mikroelektronika\mikroC PRO for AVR\Defs\" :Output files generated to file path specified by filename.-SP"C:\Program Files\Mikroelektronika\mikroC PRO for AVR\Defs\" :Add directory to the search path list.-SP"C:\Program Files\Mikroelektronika\mikroC PRO for AVR\Uses\LTE64KW\" :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!



