ZBasic Language Reference
158
ZBasic Microcontrollers
--strict={On|Off|Default}
This option specifies whether strict syntax mode should be on, off or the default state for the selected
language. See Section 2.3.1 for more information on the default state of this option for the supported
language variants and the effects of strict mode.
--string-size=<value>
This option specifies the default string length, in decimal, for statically allocated strings in modules
subsequently processed. It may be overridden in any module by the Option StringSize directive.
See Section 2.3.1 for more information on how this value is used.
--target-CPU=<target>
This option is deprecated, use -target-device instead.
--target-config[=<config file>]
--target-config-force[=<config file>]
The first form of this option is silently ignored unless the target device is a generic device. The second
form forces processing of the option irrespective of the current target device. In both cases, if the option
appears without the equal sign and filename the name of the configuration file is inferred by taking the full
path of the project file (which must have been previously specified) and replacing the extension with
.cfg. The specified or inferred file is processed as if it had been specified with the -args option, i.e.
the file should contain additional command line options. Usually, the command line options in the
configuration file will be limited to -device-parameter options but they are not restricted to being only
those. The first form of this option is useful because it will be ignored when compiling for a ZX device (for
which -device-parameter options are not allowed) but will be processed when compiling for a
generic target device (for which -device-parameter options must be specified). The second form is
useful when you want to specify the target device in the configuration file as well.
--target-device=<target>
This option specifies the target for which code should be generated. If this option is used, it must appear
before any modules are compiled (the default target is ZX24). The target device may alternately be
specified in the first module compiled using the Option TargetDevice directive. Doing so will override
the specification on the command line. A complete list of supported device names is given in Appendix B.
--temp-dir=<directory>
For native mode devices, the compiler generates several intermediate files in the process of compiling an
application. Normally, those files are created in a temporary subdirectory of the directory containing the
project file and then the directory and its content are deleted when the compilation is done. The name of
the temporary directory is selected to avoid conflicting with any existing files and directories. The
temporary files can be retained using -keep-files option. In this case the directory in which they will
be created will be zxTempDir. A separate subirectory will be created in this temporary directory for each
project compiled. If the default name of the temporary directory is unsuitable, you may specify a different
directory using the -temp-dir option. If the specified directory is relative, its interpreted as being
relative to the directory containing the project file.
|