Mikroelektronika MIKROE-350 データシート

ページ / 526
MIKROBASIC PRO FOR AVR COMMAND LINE OPTIONS
Usage: 
mBAvr.exe [-<opts> [-<opts>]] [<infile> [-<opts>]] [-<opts>]] 
Infile can be of *.mbas and 
*.mcl
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: 
mBAvr.exe -MSF -DBG -pATMEGA16 -C -O11111114 -fo8 -
N"C:\Lcd\Lcd.mcpav" -SP"C:\Program Files\Mikroelektronika\mikroBasic
PRO for AVR\Defs\" 
-SP"C:\Program Files\Mikroelektronika\mikroBasic PRO
for AVR\Uses\LTE64KW\" -SP"C:\Lcd\" "Lcd.mbas" "__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. 
-fo8
: Set oscillator frequency [in MHz]. 
-N"C:\Lcd\Lcd.mcpav" -SP"C:\Program Files\Mikroelektronika\mikroBasic
PRO for AVR\defs\" :
Output files generated to file path specified by filename. 
-SP"C:\Program Files\Mikroelektronika\mikroBasic PRO for AVR\defs\"
:
Add directory to the search path list. 
-SP"C:\Program Files\Mikroelektronika\mikroBasic PRO for AVR\uses\"
:
Add directory to the search path list. 
-SP"C:\Lcd\" 
: Add directory to the search path list. 
"Lcd.mbas" "__Lib_Math.mcl" "__Lib_MathDouble.mcl" "__Lib_System.mcl"
"__Lib_Delays.mcl" "__Lib_LcdConsts.mcl" "__Lib_Lcd.mcl" :
Specify input files. 
67
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Environment
mikroBasic PRO for AVR
CHAPTER 2