CHAPTER 3 WORK BENCH
26
EPSON
S5U1C88000C MANUAL II
WORKBENCH/DEV TOOLS/OLD ASSEMBLER
Notes to be observed when specifying compiler options
If both the -g option (Enable Symbolic Debug Information) and the -O1 option (Set Optimization) are
selected, a -W555 warning message is output during compiling.
If the -O1 option is specified, the symbols written in the source may not actually be used to optimize
the code. In this case, the debugging information for these symbols will not output to the .abs file,
even if the -g option is specified.
Example:
int x, y, xy;
x = GLOBAL_X * 100;
y = GLOBAL_Y * 100;
xy = x * y;
In this example, since variable xy become nonexistent for optimization, the contents of xy cannot be
referenced during debugging.
If the executable file is recreated by specifying the -O1 option (optimization ON) after evaluation of
the executable file created with the -O0 option set (optimization OFF), program behavior cannot be
assured. Be sure to reverify the executable file whenever it is recreated this way.
About options that are not displayed
The C compiler options not displayed in the Option view are handled as described below:
-e
This option is used in internal processing.
-err
C compiler messages are displayed in the message window and output to an error
log file.
-f file
This option conflicts with internal processing and cannot be used.
-o file
The source file name is also used for the output file.
-V
This option is not used in wb88.
-M{s | c | d | l} Specify this option in the linker option setup screen.
Default options and local options
If individual C source files are selected in the Project view, the option setup screen shows only the
local options that are applied only to the selected C source file. If no specific file is selected in the
Project view, or files other than individual C source files are selected, the default options that apply to
all C source files are displayed.
If local options are displayed, the option setup screen will also display the [Use Default] button, as in
the example shown below, to allow you to specify whether or not to apply the default options to the
selected C source file.
To change the compile options for each C source, uncheck the [Use Default] button and set each
option individually again.