Help!,
I've successfully used a grammar file with yacc on Ultrix but
the same grammar does not work on alpha. The yacc tool itself runs
OK but the y.tab.c prog it produces seems to think that words are
4 bytes long, not 8 bytes. I gather this because, whenever I look at
the value stack the top element ($1) is always correct (ie. equal to
yytext) but anything below it on the stack ($2, $3, etc.) are nulls,
even when its obvious that other tokens should be there. I think that
each time it pushes a new value on the stack, it thinks its doing a
4 byte write but actually is doing an 8 byte write, thus destroying
the prev. top-of-stack value. It then goes to the next address (by
adding 4, not 8 like it should) and pushing again, repeating the error.
In short, I can never retrieve anything but the last value on
the stack. Is this a known problem out there? More importantly, is
there a fix that I can get ahold of fast!?
Help,
Jeff Blessing
Received on Fri Sep 01 1995 - 22:05:28 NZST