Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-05

Cross-compile on Linux from 32bits to 64bits

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

TOUZEAU DAVID

Dear

I'm using a 32 bits Linux system to developp and i want my program to be 64 Bits compatible.
What is the best method to allow my program to be compatible on 32 And 64 bits ?

Besst regards

David Touzeau -------------------------- Linux Ubuntu 7.04 feisty FreePascal-Lazarus,perl,delphi,php artica for postfix management console (http://www.artica.fr) icq:160018849
Jonas Maebe
to TOUZEAU DAVID
TOUZEAU DAVID wrote
I'm using a 32 bits Linux system to developp and i want my program to be 64 Bits compatible. What is the best method to allow my program to be compatible on 32 And 64 bits ?

Do not type cast between integer and pointer types (and if you have to, always use the ptrint and ptruint types). Do not use assembler.

Jonas