From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
To: axp-list@redhat.com
Subject: Re: Unaligned accesses
Date: Thu, 26 Jul 2001 16:39:24 +0400 [thread overview]
Message-ID: <20010726163924.A1019@jurassic.park.msu.ru> (raw)
In-Reply-To: <20010725151509.A28747@ellpspace.math.ualberta.ca>; from michal@ellpspace.math.ualberta.ca on Wed, Jul 25, 2001 at 03:15:09PM -0600
On Wed, Jul 25, 2001 at 03:15:09PM -0600, Michal Jaegermann wrote:
> If you are compiling that only with gcc then '__attribute__ ((packed))'
> on various structures will force gcc to generate a much more
> careful access code - for a price, of course.
Using memcpy() with constant size is fine as well, and is portable.
Modern GCC (>= 2.95) generates quite a good inline code for this.
Ivan.
next prev parent reply other threads:[~2001-07-26 12:39 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-25 0:02 Archives on www.lib.uaa.alaska.edu Mike Tibor
2001-07-25 0:04 ` James Fowler
2001-07-25 1:41 ` Larry Snyder
2001-07-25 20:28 ` Mike Tibor
2001-07-25 0:57 ` Unaligned accesses alvin
2001-07-25 15:47 ` Jay Estabrook
2001-07-25 20:41 ` alvin
2001-07-25 21:08 ` Christopher C. Chimelis
2001-07-25 21:15 ` Michal Jaegermann
2001-07-26 12:39 ` Ivan Kokshaysky [this message]
2001-07-26 12:40 ` Ivan Kokshaysky
2001-07-26 13:29 ` Jay Estabrook
2001-07-26 17:21 ` alvin
2001-07-26 18:45 ` Frank Palmieri
2001-07-27 2:17 ` 164SX memory Eric Brown
2001-07-27 4:48 ` kirk uriksun
2001-07-27 5:18 ` Maurice Hilarius
2001-08-06 9:59 ` Iso-H
2001-08-06 12:33 ` Rich Payne
2001-08-06 12:52 ` Iso-H
-- strict thread matches above, loose matches on Subject: below --
2001-07-25 11:56 Unaligned accesses Rick Gorton
1998-07-05 0:54 B. James Phillippe
1997-09-23 9:39 Sheer Panic
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