[M3devel] Another Allow_packed_byte_aligned issue

Darko Volaric lists at darko.org
Sun Sep 27 03:27:59 CEST 2015


I implemented the byte aligned packing functionality and the
Allow_packed_byte_aligned flag was supposed to be a constant that signified
that the target CPU allows byte alignment thus relaxing the normal packing
restrictions.

I can't speak for the implementation of the pragma (or later changes), but
I think it should be removed since (in my mind) it doesn't serve any useful
purpose.


On Sat, Sep 26, 2015 at 12:23 PM, Rodney Bates <rodney_bates at lcwb.coop>
wrote:

> In trying to better understand the issue, I see, in Module.m3:895, this
> code:
>
>     Target.Allow_packed_byte_aligned := t.containsLazyAlignments;
>
> From other places, containsLazyAlignments derives from LAZYALIGN
> pragmas, so this means it will turn on Allow_packed_byte_aligned,
> regardless of the target, if there is a LAZYALIGN pragma.  I think this
> will generate code that will alignfault, if the target CPU doesn't
> support it.  That would be a bug.
>
>
> -Rodney Bates
>
> _______________________________________________
> M3devel mailing list
> M3devel at elegosoft.com
> https://mail.elegosoft.com/cgi-bin/mailman/listinfo/m3devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20150926/d40f50e0/attachment-0002.html>


More information about the M3devel mailing list