On Sat, May 17, 2008 at 4:06 PM,  <[EMAIL PROTECTED]> wrote:
> I probably do not see the depth of the problem, and this seems to be just
> too easy, but for me this should be done on the compiler level: how about a
> compiler switch which forces the compiler to "think" as if the  "unaligned"
> keyword was there at  the potentially  problematic assignments.  FPC and
> Lazarus aims to have a single source for all platforms, and this is broken
> if you have to change the source for ARM.

Probably Yuri should answer that. I am not sure, but I think that the
problem is that alignment check is very slow. Maybe it could be done
with a compiler directive, so that you can choose to have slower, but
safer, code, or if you want to manually control all places where
potential unalignment may occur and have maximum speed. This is better
discussed in the fpc-devel mailling list.

-- 
Felipe Monteiro de Carvalho
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to