Kevan Hashemi
2014-02-14 02:33:51 UTC
Greetings,
On Red Hat Linux 6.5 running on a 32-bit machine, I compile GPC to
obtain a 32-bit Pascal compiler in which the integer type is 4 bytes
long. I compile TclTk from sources and obtain an executable in which the
C "int" type is 32 bits long. They work well together.
On Red Hat Linux 6.5 running on a 64-bit machine, I compile GPC to
obtain a 64-bit Pascal compiler in which the integer type is 8 bytes
long. I compile TclTk from sources and obtain an executable in which the
C "int" type is still 32 bits long. They do not work well together.
I can edit my Pascal code to make all integer types a fixed length
regardless of architecture. But I was wondering if there is a Pascal
compiler directive that I can use to force the integer size to 32 bits
on all platforms.
Or perhaps there is a configure option when I compile GPC from its
sources that will tell the compiler to make the integer type 32 bits.
Yours, Kevan
On Red Hat Linux 6.5 running on a 32-bit machine, I compile GPC to
obtain a 32-bit Pascal compiler in which the integer type is 4 bytes
long. I compile TclTk from sources and obtain an executable in which the
C "int" type is 32 bits long. They work well together.
On Red Hat Linux 6.5 running on a 64-bit machine, I compile GPC to
obtain a 64-bit Pascal compiler in which the integer type is 8 bytes
long. I compile TclTk from sources and obtain an executable in which the
C "int" type is still 32 bits long. They do not work well together.
I can edit my Pascal code to make all integer types a fixed length
regardless of architecture. But I was wondering if there is a Pascal
compiler directive that I can use to force the integer size to 32 bits
on all platforms.
Or perhaps there is a configure option when I compile GPC from its
sources that will tell the compiler to make the integer type 32 bits.
Yours, Kevan
--
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/