|
From: John C. <joh...@ta...> - 2004-05-12 23:24:54
|
On Tue, 11 May 2004, Eyal Lebedinsky wrote: > I want to validate my program is making all accesses on the native alignement > for the instruction. I want a violation reported in I use a 32bit instruction > on unaligned memory. Is there a skin that does this or do I need to create > a new one? Compiling with gcc -Wcast-align will tell you if you are doing something evil. (It's better than valgrind for this task, in a sense, in that a valgrind skin will merely tell you if you were unlucky or lucky with your cast's on that particular run. -Wcast-align will tell you if it could ever be possible that to foul up alignment with a cast.) You could also just compile and run on a Sun sparc. They are fiercely fussy about alignment and throw a wobbly if you perform a bad cast. John Carter Phone : (64)(3) 358 6639 Tait Electronics Fax : (64)(3) 359 4632 PO Box 1645 Christchurch Email : joh...@ta... New Zealand The universe is absolutely plastered with the dashed lines exactly one space long. |