Datasheet

MIKROC PRO FOR AVR COMMAND LINE OPTIONS
Usage: mikroCAvr.exe [-<opts> [-<opts>]] [<infile> [-<opts>]] [-
<opts>]]
Infile can be of *.c and *.pld type.
The following parameters and some more (see manual) are valid:
-P : MCU for which compilation will be done.
-FO : Set oscillator [in MHz].
-SP : Add directory to the search path list.
-IP : Add directory to the #include search list.
-N : Output files generated to file path specified by filename.
-B : 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 : Turn on case sensitivity.
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 pATMEGA16 selected.
-C : Turn on case sensitivity.
-O11111114 : Miscellaneous output options.
-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 specif-
ied 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\" :
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.
75
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Environment
mikroC PRO for AVR
CHAPTER 2