Yacc problem with 64-bit word sizes

From: Prof. Jeff Blessing <blessing_at_odo.msoe.edu>
Date: Fri, 1 Sep 1995 14:34:52 -0500

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

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT