mikroBasic PRO for PIC Command Line Options
Usage: mBPIC.exe [-<opts> [-<opts>]] [<infile> [-<opts>]] [-<opts>]]
<infile>
can be of *.mbas
, *.mcl
and *.pld
type.
The following parameters and some more (see manual) 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.-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.-UICD
: ICD build type.-EH <filename>
: Full EEPROM HEX file name with path.-Y
: Dynamic link for string literals.-LHF
: Generate Long hex format.-GC
: Generate COFF file.-PF
: Project file name.-RA
: Rebuild all sources in project.
mBPIC.exe -MSF -DBG -p16F887 -C -O11111114 -fo8 -N"C:\Lcd\Lcd.mbppi" -SP"C:\Program Files\Mikroelektronika\mikroBasic PRO for PIC\Defs\"      -SP"C:\Program Files\Mikroelektronika\mikroBasic PRO for PIC\Uses\P16\" -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.-p16F887 :
MCU PIC16F887 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.mbppi" -SP"C:\Program Files\Mikroelektronika\mikroBasic PRO for PIC\Defs\" :
Output files generated to file path specified by filename.-SP"C:\Program Files\Mikroelektronika\mikroBasic PRO for PIC\Defs\" :
Add directory to the search path list.-SP"C:\Program Files\Mikroelektronika\mikroBasic PRO for PIC\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.
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!