BASIC -v -wn -Ipath FileName Itemlist (On En Wn Ipath Qq
||set the warning level to 0, 1, 2 or 3. See later
||path for include files
||optimize the code, see below
||optimize the code. As the (O) option
||set warning level to 0, 1, 2 or 3, see below
||path for include files
||allow persistent variables in subroutines
||specifies that the source code contains embedded SQL statements, see below
If the record key selection is omitted, BASIC will use any preceding select list. If
the BASIC command has no select list, it will use all records in the specified file. When
processing the list of record keys, the BASIC command will ignore $ and ! prefixes and .o
or .obj suffixes and build up a list of source names. Using this mechanism, you can safely
use BASIC on all records in a file, and it will only process the sources you intended. The
jbc and BASIC commands allows 4 levels of warning to be generated.
For example, to set warning level 3 use either of the following commands:
BASIC -w3 FILENAME SOURCENAME
BASIC FILENAME SOURCENAME \(W3
The jbc command uses the -JCwn option, where n is the warning level from 0 to 3.
For example, to set warning level 3 use the following command:
jbc -Jcw3 FILENAME.b -c
Note: To copy binary object files such as $PROG or PROG.o from Hash files to
directories or vice versa use the B option of the jBASE COPY command. This will ensure
conversion of attribute mark characters to new line and vice versa is suppressed thus
invalidating the binary object.
There are 4 levels of optimization.
||No code optimizations are performed and debug information is produced for both the C
debugger and the jBASE debugger.
||Debug information is produced for the jBC debugger but not for the C debugger. Minimal
optimization occurs. This is the default optimization level.
||Debug information is produced for the jBC debugger. Optimization of jBC occurs and
matrix boundary checking is removed. The C code is optimized by the standard optimizations
of the resident C compiler.
||Full optimization. No debugging information is produced. The jBC code is fully
optimized and no run time checking is done on array boundaries and the like. All symbol
information is removed from the final executable and all available (safe) optimizations
are performed by the resident C compiler.
The default level is level 1.
The four levels are:
||no warnings generated at all
||reports likely coding errors
||reports level 1 warnings and bad practice
||reports every transgression of the rules
The following source code can be used to show the different warning levels in action.
Each warning level will produce a different set of warning messages. The higher the warning level the more warning messages will be generated.
varx = 1
vary = varz
FOR I = 1 TO 10
format = varx "L#10" "L#20" "L#30"
The Qq option is used to specify that the source code contains embedded SQL statements.
The values for q can be: