[comp.unix.ultrix] Alignment problem on DECstation 3100

KSpagnol@massey.ac.nz (Ken Spagnolo) (03/21/90)

On several occasions, programmers here have had things crash (sometimes
leaving core, sometimes not) due to a problem 3100's seem to have with
the alignment of variables within a program.  My latest error message
said "pid 2436 was killed on unaligned access, at pc 0x4008d4".  A
work mate solved a similar problem by changing his single char definitions
to int, forcing everything to line up on even word boundaries, perhaps.
This all seems a bit bogus.  Surely there is some comprehensive way to
deal with this situation, rather than manually trying to align your
variable space so the machine is happy.  I've read the cc man page, but
can't find any option that will force a different sort of alignment.

Assuming others have seen this phenomenom, what did you do about it?  Thanx.