tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Prof. Jeff Blessing" <blessing () odo ! msoe ! edu>
To: tru64-unix-managers
Subject: Yacc problem with 64-bit word sizes
Date: Fri, 01 Sep 1995 19:34:52 +0000	[thread overview]
Message-ID: <96075323306417.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~1995-09-01 19:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox