added stackheight computation

This commit is contained in:
eck
1990-07-18 14:33:07 +00:00
parent 4565dd1dc0
commit c08f3b3c80
18 changed files with 358 additions and 13 deletions

View File

@@ -6,6 +6,7 @@ static char rcsid[] = "$Header$";
#include "param.h"
#include "types.h"
#include "line.h"
#include "shc.h"
#include "proinf.h"
#include "alloc.h"
#include <em_spec.h>
@@ -77,6 +78,25 @@ outregs() {
curpro.freg = (reg_p) 0;
}
/* outsth() handles the output of the stackheight messages */
outsth() {
register lblst_p lp = est_list;
if (state == NO_STACK_MES) return;
while(lp != NULL) {
if ((lp->ll_height != 0) && !(lp->ll_num->n_flags & NUMCOND)) {
outinst(ps_mes);
outoff((offset)ms_sth);
outoff((offset)lp->ll_num->n_number);
outoff((offset)lp->ll_height);
outoff((offset)lp->ll_fallthrough);
outinst(sp_cend);
}
lp = lp->ll_next;
}
}
incregusage(off) offset off; {
register reg_p rp;