9
CHAPTER 2 OPERATION
2.1.2 Data and Address Formulas (Symbols, Line Numbers,
Character Constants)
The SOFTUNE WORKBENCH provides symbols, line numbers, and character constants
as the terms of data and address formulas.
■ Symbol
The symbols used in the source program can be referenced as addresses; they have the type information
generated by the C compiler and other accessory information. The accessory information generated by the
assembler is label information. Each symbol consists of a module name, a function name, and a symbol
name. Specify these names as follows:
When the source program is written in the assembly language, module-name is the name written in the
operand of the [PROGRAM] statement. When it is written in the C language, module-name is the name of
the source file to be compiled. Function-name is a function name written in the C language; it is valid only
when the source program is written in the C language.
To distinguish a global symbol from others, write it as \symbol-name.
Table 2.1-1 shows symbol description.
No Japanese character strings can not be used for symbols.
■ Line number
The line numbers to be generated by the C compiler or assembler can be used to reference addresses. For
the C language, a line number indicates the starting address when one line is compiled.
When referencing an address with a line number, prefix $ to the line number. A line number can be
specified only in a decimal number. Specify the line number in the following format. If the extension of the
[[module-name][\function-name]\] symbol-name
Table 2.1-1 Symbol Cannot Description
Description Contents
Symbol Local symbol in function → static symbol in module → global symbol
Global symbol
\Symbol Local symbol in the specified function in the current module
\function\symbol Static symbol in the specified module or global symbol defined in the
specified module
Module\symbol Local symbol in the specified function in the specified module
Module\function\symbol Symbol in class (Valid for static)
Symbol in class function
[source file-name]$line-number