[fpc-devel] Can FPC at least give a hint/warning?

Marco van de Voort marcov at stack.nl
Tue Nov 8 11:22:20 CET 2016


In our previous episode, Mark Morgan Lloyd said:
> The Solaris and C communities appeared to take the line that a correct 
> compiler "could not" generate unaligned accesses, although they held off 
> clarifying whether "could" in that context means "if it does it's an 
> error" or "it must rearrange data to avoid an error".
> 
> I believe that Solaris and in some cases Linux can handle unaligned 
> accesses in the kernel, although there's obviously a significant 
> performance penalty.

I can remember the early powerpc ports where I came into trouble with the
NetBSD port because the Linux kernel used emulation to fix unaligned float
loads/stores, while NetBSD didn't.




More information about the fpc-devel mailing list