#C's
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.
Not sure I understand what you're claiming that Lattice C is doing wrong. You
_can't_ have a valid pointer to a char situated on an odd address (address regs
can't contain odd values). You didn't mention to what you were casting the
pointer to char, by the way.
What's wrong with the printf() results? The &x and &y values would be the same
whether word or long, since they're sign extended as words. If it's doing a
sub.w instead of a sub.l that does sound like a bug, since the printf() 'd'
conversion specification specifically relates to ints (unless the 'l' modifier
is used) and Lattice is _supposed_ to treat ints as 32 bit animals.
— Bob Perez