Start Back Next End
  
ZBasic Language Reference
148
ZBasic Microcontrollers
--gcc-opts=<options>
This option allows you to specify additional options to be passed to the gcc compiler and linker when
generating code for native mode devices.  The option string given will be added to the command lines
after the options supplied by the ZBasic compiler and before the filenames.  This position allows you to
override earlier options or to add to the options or both.
--heap-limit=<value>
This option, useful only for native mode devices, specifies the heap limit, beyond which the heap will not
grow.  See the discussion in section 6.6 for details on the effect of this option.
--heap-size=<value>
This option, useful only for native mode devices, specifies the size of the heap and, indirectly, the heap
limit.  See the discussion in section 6.6 for details on the effect of this option.
--help
This option causes the compiler to output a summary of the invocation options and then exit.
--help-all
This option causes the compiler to output more comprehensive information about the invocation options
and then exit.
--help-optimize
This option causes the compiler to output information about available optimization flags and default
settings, and then exit.
--help-warning
This option causes the compiler to output information about available warning flags and default settings,
and then exit.
--include-path=<path-list>
With this option you can specify a list of directories in which the compiler will look for files included using
the #include directive, for Program Memory data initialization files and for files imported using the
#import directive.  The <path-list> element consists of zero or more directory names, each
separated from the next by a semicolon.  If any components of the directory name contain a space, the
entire list may have to be quoted depending on your computer’s operating system.  Quoting is neither
required, nor supported, when this option occurs in a project file or arguments file.  Note that the current
directory can be made part of the include path in the normal fashion by using a single period to represent
it.
Example
--include-path=..\includes;.;C:\projects\zbasic\files
This example specifies an include path with three components.  When you use an include directive with a
non-absolute path like #include "lcd.bas", the first place that the compiler will look for lcd.bas is in
the includes sub-directory of the parent of the current directory.  If it is not found there, the compiler will
Previous page Top Next page