Tuesday, 21 August 2012

[gccsdk] Unaligned data access vs pack(push...

I am attempting to compile LZ4 compression, and the working binary
doesn't get it's arithmetic right, decompressing declares corruption.
The warnings

warning: #pragma pack(push[, id], <n>) is not supported on this target
warning: #pragma pack(pop[, id], <n>) is not supported on this target

can be avoided by using -D__ARM_FEATURE_UNALIGNED but according to
http://infocenter.arm.com/help/topic/com.arm.doc.dui0472c/BABFDBCJ.html
this could be a problem for earlier than ARMv6 also.

I'm not keen on starting on C++ stuff, This is a fairly small project,
but requires manually configuring.

One other config question is wether we support hardware bit counting,
in case that means something to anyone?

TIA Ron M.

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment