From: neideck@bier.enet.dec.com (Burkhard Neidecker-Lutz)
Subject: Re: Alignment on alpha?
Date: 16 Sep 1993 16:07:15 GMT [thread overview]
Message-ID: <27a2vjINNli6@usenet.pa.dec.com> (raw)
In-Reply-To: 2775bo$52b@utne.zk3.dec.com
If you *really* need unaligned access to objects that are misaligned
on purpose, you can either write portable code by using byte accesses
and assembling into words or the (faster) way is to use an extension
to C provided by the Alpha/OSF/1 compilers which will generate the
more efficient unaligned access code sequences found in the Alpha
architecture:
main()
{
char mis[10];
__unaligned int *p;
p = (int *) (mis + 1);
return(*p);
}
Burkhard Neidecker-Lutz
Distributed Multimedia Group, CEC Karlsruhe
Software Motion Pictures & BERKOM II Project
Digital Equipment Corporation
neidecker@nestvx.enet.dec.com
next prev parent reply other threads:[~1993-09-16 16:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-09-14 21:38 Alignment on alpha? chrisp
1993-09-15 13:29 ` Dave Hill
1993-09-16 16:07 ` Burkhard Neidecker-Lutz [this message]
1993-09-17 12:06 ` Art Stine
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