Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: al012@svtstu.seqeb.gov.au (Anthony)
Subject: Re: Funny alignment with structures ?
Date: Thu, 8 Dec 1994 01:31:19 GMT	[thread overview]
Message-ID: <D0GxK7.JxE@un.seqeb.gov.au> (raw)
In-Reply-To: D0Gt97.GzE@un.seqeb.gov.au

In article <D0Gt97.GzE@un.seqeb.gov.au>, al012@svtstu.seqeb.gov.au (Anthony) says:
>
>In article <3c2dij$268@nntpd2.cxo.dec.com>, alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) says:
>
>>
>>You may be able to override some of the realignment enforced by
>>the compiler, using compiler options (-Zp looks likely for the
>>OSF C compiler).  But the hardware still won't like it and you're
>>likely to get unaligned access trap messages.  You can fix this
>>by realigning the data by hand if stuck with that particular data
>>format, but it will use some program time to do it.
>>
>
>Currently, I am using the -Zp1 switch to get my alignment.  The
>problem is that I am receiving a block of bits from a remote machine
>and therefore I can't  rearrange the order of the components of
>my struct.  I would have thought that a -Zp1 would cause the compiler
>to generate code that would try and shift the bytes etc. ?

Unfortunately, my -Zp1 switch seems to be causing my program to
crashed :-(.


Anthony Lee				These are my opinions and not SEQEB.
SEQEB					
150 Charlotte Street			
Brisbane
Qld 4000
Australia
voice:+61 7 223 4541
fax:  +61 7 221 7556
email: AL012@svtstu.seqeb.gov.au


  reply	other threads:[~1994-12-08  1:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-12-06  5:28 Funny alignment with structures ? Anthony
1994-12-06 14:32 ` Steve Thompson
1994-12-06 19:20   ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1994-12-07  6:56     ` Tim Bartley
1994-12-07 23:58     ` Anthony
1994-12-08  1:31       ` Anthony [this message]
1994-12-07 14:50 ` Stefan Monnier
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