Chapter 5 Using Asssembler

5.3.4Program Generation Options

g

Output debug information to the relocatable object file

Functional Description

This option causes the assembler to include in the relocatable object 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:

This option must also be specified when linking. 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).

 

 

 

NOTE:

If the number of lines per source file exceeds 65535, some part of the debug

 

 

information will not be output. Make sure when you debug programs, one source

 

 

file can contain up to 65535 lines. Divide a file with more than 65535 lines to

 

 

avoid errors. Note that the file names or line numbers in error messages will not

 

 

be shown if the linker generates error or warning messages after the line 65535.

 

 

 

Rules of Use

This option is specified with the hyphen (-) option specification character, followed by the lower-case letter 'g'.

as103 -g sample.asm

Default Specification

Debug information will not be output.

78 Command Options

Page 90
Image 90
Panasonic MN1030 Program Generation Options, Output debug information to the relocatable object file, As103 -g sample.asm