Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <b> command-line switches and compiler options</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
               Command-Line Switches and Compiler Options

 Command-line syntax:

 QB [source] [/b] [/g] [/llibrary]] [c:buffsize] [options] [/cmdstring]

      source    A source code file that's loaded when QB is invoked.

          /b    Turns off the color burst. For use with composite displays
                attached to CGAs.

          /g    Turns off snow suppression. Produces faster screen update,
                but may also produce snow. Has no effect on screens
                attached to Monochrome Display Adapters or EGAs.

   /llibrary    Loads a specified user library. The argument library
                defaults to USERLIB.EXE.

  c:buffsize    Specifies the size, in bytes, of the buffer for receiving
                communications data. Default: 256 bytes, maximum: 32767
                bytes. The transmit buffer is fixed at 128 bytes.

     options   Specifies one or more compiler options. See below.

  /cmdstring    Passes arguments at run time to a memory-compiled program.
                Everything from /cmd to the carriage return is accessible
                via the COMMAND$ function.

 Compiler options

          /d    Debug. Generates code that checks for arithmetic overflow,
                array bounds, RETURNs without GOSUBs, and Ctrl-Break. Also
                produces line number references for runtime errors and
                enables the use of TRON and TROFF.

          /e    On Error. For use when the program includes one or more ON
                ERROR GOTO linenumber constructions.

        /MBF    Microsoft Binary Format. Designed to be used with the math
                coprocessor version of QuickBASIC, /MBF reads data in
                files stored via previous versions of BASIC and converts
                it from Microsoft Binary Format to IEEE floating-point
                format. The files are converted as they are read in, and
                reconverted to MBF as they are written back to disk. An
                alternative to the use of CVSMBF and CVDMBF, the /MBF
                option allows you to preserve your original data files, so
                they may be accessed on machines without coprocessors.

          /o    Obj(BCOM.LIB). Produces an object file linked with
                selected routines from BCOM.LIB, instead of with BRUN.LIB.
                Programs compiled in this manner are likely to use less
                RAM and run faster, but take up more disk space. CHAIN and
                COMMON are not supported by BCOM.LIB. For more
                information, see Appendix D of the QuickBASIC manual.

          /q    Speed. Optimizes for fast execution at the expense of
                program size.

          /r    Arrays in Row Order. Instructs the compiler to store
                arrays in row order, so that, for example, ARRAY(2,1)
                would be followed by ARRAY(2,2) instead of by ARRAY(3,1).
                The compiler's (and the interpreter's) default storage is
                in column order.

          /s    Turns off the Minimize String Data option. By default, the
                compiler references duplicate string literals at the same
                memory location, in order to minimize storage
                requirements. That requires it to keep all strings in
                memory throughout compilation. Some programs with large
                numbers of strings may cause memory overflow errors as a
                result. The /s option turns off this default.

          /v    Checking Between Statements. Enables event trapping, with
                checking after each statement instead of after each
                program line.

          /w    Event Trapping. Enables event trapping, with checking
                after each program line.

          /x    Resume Next. For use with programs that contain one or
                more RESUME, RESUME NEXT, or RESUME 0 statements.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson