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
That's precisely the point. The Borland, TMT, FPC and GPC compilers are not compatible on bit-packing. By using the Macro Compiler you get bit-packing which is independent of the compiler, so that programs compiled with any of these Pascal compilers can exchange data.
Frank
************************************** See what's free at http://www.aol.com.
On 13 jun 2007, at 07:26, Contestcen@aol.com wrote:
That's precisely the point. The Borland, TMT, FPC and GPC compilers are not compatible on bit-packing. By using the Macro Compiler you get bit- packing which is independent of the compiler, so that programs compiled with any of these Pascal compilers can exchange data.
The bitpacking format is defined in the ABI of the respective platforms (at least all SYSV processor-specific supplements define how you should bitpack), and gcc follows that ABI.
Some documentation: * http://www.sco.com/developers/devspecs/abi386-4.pdf : i386 sysv abi supplement, see p. 3-6 and following (look, SCO is still useful for something after all :) * http://refspecs.freestandards.org/elf/elfspec_ppc.pdf : ppc sysv abi supplement, see p. 3-8 and following
Jonas