Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
BC Command-Line Options
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
BC.EXE creates object files that can then be linked with LINK.EXE to become
executable files.
BC [options] sourcefile [objectfile] [listfile] [;]
■ sourcefile Form (.FRM) or code (.BAS) module to compile
■ objectfile Name of object (.OBJ) file to create
■ listfile Name of assembly-code list (.LST) file
■ ; Uses default values for remaining fields; if omitted, BC
prompts for remaining parameters
■ options Command-line options available with BC.EXE:
Option Description
══════════ ════════════════════════════════════════════════════════
/? Displays available command-line options
/A Creates disassembled object code-listing from source
/Ah Allows dynamic arrays, fixed-length strings, and numeric
data to be greater than 64K each
/C:n Sets COM buffer size
/D Enables Ctrl+Break and run-time error checking
/E Supports use of ON ERROR with RESUME
/Es Shares expanded memory with mixed-language routines
/FPa* Causes program to use alternate-math library for
floating-point operations
/G2* Enables optimization switch for 80286 processor
/G3* Enables optimization switch for 80386 processor
/Ib:n* Sets minimum number of buffers to be used by ISAM
/Ie:n* Sets amount of non-ISAM expanded memory space
/Ii:n* Specifies maximum number of non-NULL ISAM indexes
/MBF Enables read and write of Microsoft Binary Format numbers
/O Creates stand-alone EXE; can run without run-time module
/R Stores arrays in row-major order rather than column-major
/S Writes quoted strings directly to object file
/T Suppresses warnings given by the compiler
/V Enables event trapping for communications
/W Enables event trapping but also checks for events
/X Supports use of RESUME, RESUME NEXT, or RESUME 0
/Zd Indicates limited Codeview support; produces object file
containing line-number, procedure name, and limited
variable name information; form and code modules compiled
with /Zd must first be saved in ASCII format
/Zi Indicates Codeview support; produces object file
containing line-number, procedure name, and limited
variable name information; form and code modules compiled
with /Zd must first be saved in ASCII format
──────────────────────────────────────────────────────────────────────
* Available in Visual Basic for MS-DOS Professional Edition only
See Also
◄Command-Line Options► ◄Creating EXE Files►