ZBasic Language Reference
139
ZX Microcontroller Family
--target-CPU=<target>
This option is deprecated, use -target-device instead.
--target-device=<target>
This option specifies the target for which code should be generated. At present, the supported targets
are:
ZX24
ZX24a
ZX24p
ZX24n
ZX24r
ZX24s
ZX24x
ZX40
ZX40a
ZX40p
ZX40n
ZX40r
ZX40s
ZX44
ZX44a
ZX44p
ZX44n
ZX44r
ZX44s
ZX32a4
ZX1281
ZX1281n
ZX1280
ZX1280n
ZX128a1
ZX328n
ZX328l
ZX28n
ZX28n
ZX24e
ZX24ae
ZX24pe
ZX24pu
ZX24nu
ZX128e
ZX128ne
ZX1281e
ZX1281ne
ZX328nu
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.
--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.
--use-batch-file
For native mode devices, this option causes the compiler to generate a batch file containing commands to
perform the back-end compile-link process instead of building using a makefile.
--verbose
This option, useful only for native mode devices, causes the output from the final build process to be sent
to stderr. In the absence of this option, the output from the build process is captured in a file named
build.log created in the temporary directory. (Use the -keep-files option to prevent the build log
from being deleted after the build is complete.)
--version
This option causes the version number of the compiler to be sent to stdout. The compiler will then exit.
--warn=<warning-type>[,<warning-type>...]
This option enables or disables specific types of warnings. The warning types are described in the table
below. To disable a warning type, add the prefix no- to the warning type, e.g. no-unused-param. All
warnings may be disabled en masse using -warn=no-warnings.