CompuServe Messages

#C's

#: 1284 S1/SoftwareForum unknown
    11-Dec-85 06:56:06
Sb: #1001-#C's
Fm: GARY SARFF 70167,2216
To: William Volk(Aegis Devel 72257,2566

This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.

I was having a problem porting a piece of C code to the Amiga because Lattice C insists on changing the value of a pointer when cast. I had pointer to char and cast it and if the pointer did not happen to be an even address, the cast changed it! so it ended up pointing to a different address (garbage). I just tried something, I have two variables declared separated by 104 bytes of storage, printf("%d\n",&x-&y) prints 104, but printf("%d\n",&y-&x) prints 65432. looks like only 16 bits, the object code is doing a sub.w instruction, not sub.l seems strange, none of my other 68000 computers do this.