Hello,
After noticing that gdb does not print 64 bit fields of (bit)packed records properly if they don't start on a byte boundary (both with fpc and with gpc), I decided to check what gcc does. It turns out that gcc (4.0.1, Mac OS X/ppc) only bitpacks values up to and including 59 bits. Fields declared as 60-64 bits are automatically aligned to the target-specific alignment boundary.
Does anyone here know why this is the case, and possibly where this is documented? I can't find anything with Google.
Thanks, Jonas
Maybe you should be looking into the bit-packing macros provided with the Pascal Macro Compiler. This will give you bit-packing which is independent of the particular Pascal compiler you happen to be using. See www.mastersoftware.biz/pasbit.htm
Frank Rubin
************************************** See what's free at http://www.aol.com.
On 12 Jun 2007, at 22:45, Contestcen@aol.com wrote:
Maybe you should be looking into the bit-packing macros provided with the Pascal Macro Compiler. This will give you bit-packing which is independent of the particular Pascal compiler you happen to be using. See www.mastersoftware.biz/pasbit.htm
Thanks, but I want to implement bit packing which is compatible with what gcc and other compilers use so data exchange is possible.
Jonas