|
|
Data Alignment Article
I re-ran the tests I wrote for the original paper. The big news is the performance penalty for unaligned 8-byte access doubled from 2,372% (on a 400MHz G3) to 4,610% (on a 800MHz G4). Haven't tried on a G5 yet... Update: Fellow deep-code-diver Ken Ferry asks: When you declare a variable such that it takes memory off the stack, is it always x-aligned to some useful value of x? Great question. Even better, Ken wrote some tests against gcc 3.3 to dredge up an answer. His results: one-byte allocation => one-byte alignment Ken also notes though he's testing on a G4 PowerBook setting the compiler flags Thursday, February 10, 2005
|
Contact Me Topics RSS Feed Linkblog
Bill Bumgarner Brent Simmons Daniel Jalkut Dave Dribin Eric Albert Eric Rescorla Eric Sink Greg Miller Gus Mueller Jeremy Zawodny John Gruber Mark Dalrymple Michael Tsai Peter Ammon Raymond Chen Ryan Wilcox Scott Stevenson Steven Frank The Daily WTF we hates software Wil Shipley |
Copyright © 1997-2008 Jonathan 'Wolf' Rentzsch. All rights reserved.
Questions? Comments? Contact Me.