added information about top element size computation
This commit is contained in:
parent
bb20d83961
commit
65bd615d62
15
doc/peep.doc
15
doc/peep.doc
@ -272,6 +272,10 @@ and for the struct where all information for one procedure is kept.
|
|||||||
This is in one struct so it can be saved easily when recursive
|
This is in one struct so it can be saved easily when recursive
|
||||||
procedures have to be resolved.
|
procedures have to be resolved.
|
||||||
.NH 3
|
.NH 3
|
||||||
|
tes.h
|
||||||
|
.PP
|
||||||
|
Contains the data structure used by the top element size computation.
|
||||||
|
.NH 3
|
||||||
types.h
|
types.h
|
||||||
.PP
|
.PP
|
||||||
Collection of typedefs to be used by almost all modules.
|
Collection of typedefs to be used by almost all modules.
|
||||||
@ -478,6 +482,17 @@ This routine might decide not to do an optimization and return false.
|
|||||||
The last routine that is called from process() is putline()
|
The last routine that is called from process() is putline()
|
||||||
to write the optimized code, bringing us to
|
to write the optimized code, bringing us to
|
||||||
.NH 3
|
.NH 3
|
||||||
|
tes.c
|
||||||
|
.PP
|
||||||
|
Contains the routines used by the top element size computation phase,
|
||||||
|
which is run after the peephole-optimisation.
|
||||||
|
The main routine of tes.c is tes_instr(). This looks at an instruction and
|
||||||
|
decides the size of the element on top of the stack after the instruction
|
||||||
|
is executed. When a label is defined or used, the size of the top element
|
||||||
|
is remembered for later use. When the information in consistent throuhout
|
||||||
|
the procedure, it is passed to the code generator by means of an ms_tes
|
||||||
|
message.
|
||||||
|
.NH 3
|
||||||
putline.c
|
putline.c
|
||||||
.PP
|
.PP
|
||||||
The major part of putline.c is the standard set of routines
|
The major part of putline.c is the standard set of routines
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user