Re: [fpc-pascal] x86_64-win64
> To declare conditional defines like this easily: > > {$ifdef cpu64} > TMyInteger = Int64; > {$else} > TMyInteger = LongInt; > {$endif} You can better use the special type for it directly instead of adding $ifdef's TMyInteger = PtrInt; TMyWord = PtrUInt; ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] x86_64-win64
Bisma Jayadi wrote: >> People following the svn changes recently might have noticed that a >> lot of >> changes regarding win64 happened. So we're proud to announce the first >> x86_64-win64 snapshot which is also probably the first available OSS >> compiler >> for win64. > > Is there any publication page about this, on the wiki or fpc website? So http://www.freepascal.org/wiki/index.php/Win64_for_AMD64 Any extensions are welcome :) > anybody else are able to spread this great news. I hope our PR deparment works on it ;) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] x86_64-win64
On Thu, 20 Apr 2006, constantijnw wrote: Michael Van Canneyt wrote: http://www.freepascal.org/wiki/index.php/Writing_portable_code_regarding_the_processor_architecture#32_Bit_vs._64_Bit And of course the documentation: http://www.freepascal.org/docs-html/prog/prog.html more specifically: http://www.freepascal.org/docs-html/prog/progap7.html#x291-293000G Amazing, isn't it ;-) Amazing discoveries indeed, but how do these documents relate to my question specifically, i.e. how to fill in the mssign word: Well: begin {$if sizeof(pointer)=4 } Writeln('4'); {$else } Writeln('8'); {$endif } end. or begin {$ifdef CPU64 } Writeln('8'); {$else } Writeln('4'); {$endif } end. or begin {$ifdef CPU32 } Writeln('4'); {$else } Writeln('8'); {$endif } end. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] x86_64-win64
People following the svn changes recently might have noticed that a lot of changes regarding win64 happened. So we're proud to announce the first x86_64-win64 snapshot which is also probably the first available OSS compiler for win64. Is there any publication page about this, on the wiki or fpc website? So anybody else are able to spread this great news. Congratulations to FPC development team! :) -Bee- has Bee.ography at http://beeography.wordpress.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] x86_64-win64
constantijnw wrote: > Florian Klaempfl wrote: >> constantijnw wrote: >> >>> Michael Van Canneyt wrote: >>> > http://www.freepascal.org/wiki/index.php/Writing_portable_code_regarding_the_processor_architecture#32_Bit_vs._64_Bit > > > And of course the documentation: http://www.freepascal.org/docs-html/prog/prog.html more specifically: http://www.freepascal.org/docs-html/prog/progap7.html#x291-293000G Amazing, isn't it ;-) >>> Amazing discoveries indeed, but how do these documents relate to my >>> question specifically, i.e. how to fill in the mssign word: >>> >> >> There was the correct cpu64 in your previous mail :)? >> >>> {$ifdef ?} >>> TMyInteger = Int64; {$else} TMyInteger = LongInt; {$endif} >> >> >> ___ >> fpc-pascal maillist - fpc-pascal@lists.freepascal.org >> http://lists.freepascal.org/mailman/listinfo/fpc-pascal >> >> >> > So cpu64 will be the define refering to all brands of 64 bits cpu's on > all flavours of 64 bits os? Yes. cpu64 means 64 bit pointers. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] x86_64-win64
Florian Klaempfl wrote: constantijnw wrote: Michael Van Canneyt wrote: http://www.freepascal.org/wiki/index.php/Writing_portable_code_regarding_the_processor_architecture#32_Bit_vs._64_Bit And of course the documentation: http://www.freepascal.org/docs-html/prog/prog.html more specifically: http://www.freepascal.org/docs-html/prog/progap7.html#x291-293000G Amazing, isn't it ;-) Amazing discoveries indeed, but how do these documents relate to my question specifically, i.e. how to fill in the mssign word: There was the correct cpu64 in your previous mail :)? {$ifdef ?} TMyInteger = Int64; {$else} TMyInteger = LongInt; {$endif} ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal So cpu64 will be the define refering to all brands of 64 bits cpu's on all flavours of 64 bits os? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] x86_64-win64
constantijnw wrote: > Michael Van Canneyt wrote: >> >>> http://www.freepascal.org/wiki/index.php/Writing_portable_code_regarding_the_processor_architecture#32_Bit_vs._64_Bit >>> >>> >> >> And of course the documentation: >> >> http://www.freepascal.org/docs-html/prog/prog.html >> >> more specifically: >> >> http://www.freepascal.org/docs-html/prog/progap7.html#x291-293000G >> >> Amazing, isn't it ;-) >> > Amazing discoveries indeed, but how do these documents relate to my > question specifically, i.e. how to fill in the mssign word: There was the correct cpu64 in your previous mail :)? > > > {$ifdef ?} >> TMyInteger = Int64; >> {$else} >> TMyInteger = LongInt; >> {$endif} ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] x86_64-win64
Michael Van Canneyt wrote: http://www.freepascal.org/wiki/index.php/Writing_portable_code_regarding_the_processor_architecture#32_Bit_vs._64_Bit And of course the documentation: http://www.freepascal.org/docs-html/prog/prog.html more specifically: http://www.freepascal.org/docs-html/prog/progap7.html#x291-293000G Amazing, isn't it ;-) Amazing discoveries indeed, but how do these documents relate to my question specifically, i.e. how to fill in the mssign word: {$ifdef ?} TMyInteger = Int64; {$else} TMyInteger = LongInt; {$endif} ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] x86_64-win64
On Thu, 20 Apr 2006, Florian Klaempfl wrote: > constantijnw wrote: > > Florian Klaempfl wrote: > >> constantijnw wrote: > >> > >>> Congratulations! Is a new compiler define planned which distinguishes > >>> between 32 and 64 bits, irrespective of the os targeted? > >>> > >> > >> What do you mean with this? > >> ___ > >> fpc-pascal maillist - fpc-pascal@lists.freepascal.org > >> http://lists.freepascal.org/mailman/listinfo/fpc-pascal > >> > >> > >> > > To declare conditional defines like this easily: > > > > {$ifdef cpu64} > > TMyInteger = Int64; > > {$else} > > TMyInteger = LongInt; > > {$endif} > > http://www.freepascal.org/wiki/index.php/Writing_portable_code_regarding_the_processor_architecture#32_Bit_vs._64_Bit And of course the documentation: http://www.freepascal.org/docs-html/prog/prog.html more specifically: http://www.freepascal.org/docs-html/prog/progap7.html#x291-293000G Amazing, isn't it ;-) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] x86_64-win64
constantijnw wrote: > Florian Klaempfl wrote: >> constantijnw wrote: >> >>> Congratulations! Is a new compiler define planned which distinguishes >>> between 32 and 64 bits, irrespective of the os targeted? >>> >> >> What do you mean with this? >> ___ >> fpc-pascal maillist - fpc-pascal@lists.freepascal.org >> http://lists.freepascal.org/mailman/listinfo/fpc-pascal >> >> >> > To declare conditional defines like this easily: > > {$ifdef cpu64} > TMyInteger = Int64; > {$else} > TMyInteger = LongInt; > {$endif} http://www.freepascal.org/wiki/index.php/Writing_portable_code_regarding_the_processor_architecture#32_Bit_vs._64_Bit ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] x86_64-win64
Florian Klaempfl wrote: constantijnw wrote: Congratulations! Is a new compiler define planned which distinguishes between 32 and 64 bits, irrespective of the os targeted? What do you mean with this? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal To declare conditional defines like this easily: {$ifdef cpu64} TMyInteger = Int64; {$else} TMyInteger = LongInt; {$endif} ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] x86_64-win64
constantijnw wrote: > Congratulations! Is a new compiler define planned which distinguishes > between 32 and 64 bits, irrespective of the os targeted? What do you mean with this? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] x86_64-win64
Congratulations! Is a new compiler define planned which distinguishes between 32 and 64 bits, irrespective of the os targeted? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal