Integer Size on 64-Bit

Kevan Hashemi <[email protected]>
Newsgroups gmane.comp.compilers.gpc
Organization Brandeis University
Message-ID <[email protected]>
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

-- 
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/

_______________________________________________
Gpc mailing list
[email protected]
https://www.g-n-u.de/mailman/listinfo/gpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.