Ofer
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Ofer
The general way to add compiler options is to specify them in the example's config.bld file. This file is typically located near the top of the Codec Engine package. The CE examples directory contains a file named _config.bld, and you can edit this to suit your needs.
To add compiler options for C6x+ compiles, edit the line of the form:
C64P.ccOpts.prefix += " ... ";
or just add another line of the same form (making sure to use += to add to it).
If your building a configuro-based example there are other possibilities, see this for help: http://rtsc.eclipse.org/cdoc-tip/xdc/tools/configuro/package.html
Regards,
- Rob
hi, in xdc help files I found the following line:
struct ITarget.Options
User configurable command options
XDCspec declarations sourced in ti/targets/ITarget.xdc
Aaron,
the contents of 'prefix' and 'suffix' are added to the compiler command line for the given target. You would need to configure them only if you want to change the default values. For example, if you want to treat warnings as errors, you could add that option to 'preffix' or 'suffix':
C64P.ccOpts.suffix += "--pdew";
The purpose of having two different parameters is to allow finer control of where on the command line you want to add options. Let's say you want to add one more directory to the include search path. Depending on where in the search order that directory should be, you may want to add it earlier or later in the command line.