Start Back Next End
  
ZBasic Language Reference
149
ZBasic Microcontrollers
next look in the current directory because of the presence of the period.  Finally, the compiler will look in
the directory C:\projects\zbasic\files.  If the file could not be located in any of the directories of
the path, an error message will be issued.  It is important to note that the #include_path directive in
ZBasic source code will override the include path specified by this option.
--keep-files
This option requests that the compiler not delete the intermediate files that it creates during compilation. 
This is only useful for native mode devices.  Unless otherwise specified (using the –-temp-dir option),
the intermediate files will be created in a subdirectory named zbTempDir in the same directory as the
project file.
--language=<language>
This option specifies the target language for the modules subsequently processed.  The values that may
be specified for the <language> element are shown in the table below.
Language Option Values
Value
Description
BasicX
Compile using BasicX compatibility mode.
ZBasic
Compile using native mode (the default).
--list[=<file>]
This option requests that a listing file be generated and specifies the filename for it.  For VM mode
devices, the listing file is similar to an assembly language listing, giving detailed information about the
code that was generated.  If the equal sign and filename are omitted, the listing is output to stdout.  For
native mode devices, the –-list option causes an actual assembly listing to be produced (--keep-
files is also needed, q.v.) and in this case no filename should be specified.  The listing file will have and
extension of .lss.
--main-task-stack-size=<value>
This option, useful only for native mode devices, specifies the size of the stack for the Main() task and,
indirectly, the heap limit.  See the discussion in section 6.6 for details on the effect of this option.
--map=<file>
This option explicitly specifies the name for the map file.  In the absence of this option, the map file name
is derived from either the project file, if specified, or the first file compiled.  If an earlier or later option
specifies no map file should be generated this option is ignored.  Currently, no map file is generated for
native mode devices.
--namespaces
This option enables definition and use of namespaces.  This option is implied by –-objects.
--name-style=<name-style>
This option specifies the identifer style that will be accepted.  The default name style is c and the sole
alternative is Basic.  
Previous page Top Next page