Re: [Mingw-w64-public] sizeof long

2018-04-17 Thread sisyphus1
-Original Message- From: Vincent Torri Sent: Wednesday, April 18, 2018 1:12 AM To: mingw-w64-public@lists.sourceforge.net Subject: Re: [Mingw-w64-public] sizeof long https://msdn.microsoft.com/ro-ro/library/s3f49ktz.aspx https://en.wikipedia.org/wiki/64-bit_computing#64-bit_data_models

Re: [Mingw-w64-public] sizeof long

2018-04-17 Thread jpmugaas
al Message- From: sisyph...@optusnet.com.au Sent: Tuesday, April 17, 2018 9:58 AM To: mingw-w64-public@lists.sourceforge.net Subject: [Mingw-w64-public] sizeof long Hi, Why is it that on our x86_64 compilers sizeof long is only 4 ? Does it absolutely have to be that way ? Would it be possible t

Re: [Mingw-w64-public] sizeof long

2018-04-17 Thread Carl Kleffner
Sorry typo: the LP64 data modell is valid for the cygwin64 toolchain. That means long is 8 bytes. 2018-04-17 17:17 GMT+02:00 Carl Kleffner : > The 64-bit compiler within cygwin64 supports the ILP64 data model, see > https://cygwin.com/cygwin-ug-net/programming.html > > 2018-04-17 17:12 GMT+02:00

Re: [Mingw-w64-public] sizeof long

2018-04-17 Thread Carl Kleffner
The 64-bit compiler within cygwin64 supports the ILP64 data model, see https://cygwin.com/cygwin-ug-net/programming.html 2018-04-17 17:12 GMT+02:00 Vincent Torri : > On Tue, Apr 17, 2018 at 4:58 PM, wrote: > > Hi, > > > > Why is it that on our x86_64 compilers sizeof long is only 4 ? > > Does i

Re: [Mingw-w64-public] sizeof long

2018-04-17 Thread Vincent Torri
On Tue, Apr 17, 2018 at 4:58 PM, wrote: > Hi, > > Why is it that on our x86_64 compilers sizeof long is only 4 ? > Does it absolutely have to be that way ? Would it be possible to design > a switch that would enable 8 byte longs ? > > The mismatch between linux and windows in this regard is

Re: [Mingw-w64-public] sizeof long

2018-04-17 Thread Norbert Pfeiler
http://en.cppreference.com/w/cpp/language/types#Data_models On Tue, Apr 17, 2018 at 3:59 PM wrote: > Hi, > > Why is it that on our x86_64 compilers sizeof long is only 4 ? > Does it absolutely have to be that way ? Would it be possible to > design > a switch that would enable 8 byte longs ?

[Mingw-w64-public] sizeof long

2018-04-17 Thread sisyphus1
Hi, Why is it that on our x86_64 compilers sizeof long is only 4 ? Does it absolutely have to be that way ? Would it be possible to design a switch that would enable 8 byte longs ? The mismatch between linux and windows in this regard is a real pita, and I'm curious about the reason(s) that