Java Reference
In-Depth Information
Block
import f(float, float, float)
import g(int)
{
int w,x
{
float x,z
f(x,w,z)
Dcls
Code
Block
Call
Dcl w
Dcl x
}
g(x)
g
Dcls
Code
Args
}
Dcl x
Dcl z
Call
Ref x
(a)
f
Args
Ref w
Ref x
Ref z
Symbol
Symbol
Attributes
Number
Name
(b)
1
2
3
4
5
6
f
g
w
x
x
z
void func(float,float,float)
void func(int)
int
Block
int
float
float
Dcls
Code
Block
Call
Dcl 3
Dcl 4
(c)
Code
Ref 2
Dcls
Args
Dcl 5
Dcl 6
Call
Ref 4
Ref 1
Args
Ref 3
Ref 6
Ref 5
(d)
Figure 8.1: Symbol table processing for a block-structured program
Search WWH ::




Custom Search