Inner Blocks; Table 1.15: Example Symbol Table For Functions And Nested Blocks - Texas Instruments TI-89 Software Manual

Sierra c assembler
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

20
1.4.7.2.

Inner Blocks

The C language defines a block as a compound statement that begins with an
open brace ' { ' and ends with a balancing close brace ' } '. An inner block is a
block that exists within a function (which is also a block). For each inner block
that has local symbols defined in it, the special symbol .bb is inserted in the
symbol table immediately before the first local symbol of the block. Analogously,
the special symbol .eb is inserted in the symbol table immediately after the last
local symbol of the block. Because inner blocks can be nested to multiple levels,
the .bb – .eb symbol pairs and associated symbols can also be nested.
Table 1.15 shows an example of nested C language blocks and the associated
symbol table.
func1( int a )
{
}
func2( int e )
{
}
Table 1.15: Example Symbol Table for Functions
TI-89 / TI-92 Plus Sierra C Assembler Reference Manual
Nested Blocks
int b;
{
int c;
{
int d;
}
}
int f;
int g;
{
int h;
}
and Nested Blocks
Section 1: General Information
Symbol Table
_func1
.bf
a
b
.bb
c
.bb
d
.eb
.eb
.ef
_func2
.bf
e
f
g
.bb
h
.eb
.ef
Not for Distribution
Beta Version February 2, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-89 plusTi-92 plus

Table of Contents