tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Yacc problem with 64-bit word sizes
@ 1995-09-01 19:34 Prof. Jeff Blessing
  0 siblings, 0 replies; only message in thread
From: Prof. Jeff Blessing @ 1995-09-01 19:34 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-09-01 19:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-09-01 19:34 Yacc problem with 64-bit word sizes Prof. Jeff Blessing

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