6.3.3
Program Generation Options
g
Functional description
This option causes the linker to include in the executable file information for use in debugging at the
source code level.
This information includes the following;
•
Names and addresses of variables
•
Detailed information on variables
•
Correspondences between line numbers and code addresses
With this information, debugging is much easier since the user can specify variables by name instead of
by address.
NOTE:
Rules of use
This option is specified with the hyphen (-) option specification character, followed by the lower-case
letter 'g'.
ld103 -g main.rf sub.rf
Default specification
Debug information will not be output.
It is also possible to change the default with an entry in the linker's start-up file. See Chapter 1 "Getting
Started" section 1.5 "Setup".
Output debug information to the executable format file
The g option must also be specified when assembling. If the g option is not
specified for either the assembler or linker, debug information will not be output
to the executable format file (.EX). If files assembled with the g option and files
not assembled with the g option are linked with the g option, debug information
will be output only for the files assembled with the g option.
Chapter 6 Using Linker
Command Options 97