Discussion:
alignment problems
(too old to reply)
n***@cs.mun.ca
2005-08-05 00:21:50 UTC
Permalink
Hello,

Palm OS Garnet Simulator threw the following alignment error at me.

run68k.c, Line:2256, Odd aligned write to 00F70017

Anyone see this before and know how it could arise?

Didn't think I had to worry about alignment issues
unless I were programming in assembly.

Thanks,

Neil
Pascal Bourguignon
2005-08-05 04:08:02 UTC
Permalink
Post by n***@cs.mun.ca
Hello,
Palm OS Garnet Simulator threw the following alignment error at me.
run68k.c, Line:2256, Odd aligned write to 00F70017
Anyone see this before and know how it could arise?
It could arise a lot of ways. For example:

char* cptr=0x0f70017;
int* iptr=(int*)cptr;
(*iptr)=4012;
Post by n***@cs.mun.ca
Didn't think I had to worry about alignment issues
unless I were programming in assembly.
You're forgetting that C is no more than assembly.
--
__Pascal Bourguignon__ http://www.informatimago.com/

The world will now reboot. don't bother saving your artefacts.
Loading...