|
From: | Gabriel Dos Reis |
Subject: | Re: [Gcl-devel] win64 |
Date: | Sun, 30 Nov 2014 10:11:56 -0800 |
Greetings! If we are going to use mingw64, with a 32bit long, is there
any objection to having a 32bit fixnum?
Take care,
Kilian Singer <address@hidden> writes:
> Dear Camm,
> as far as I understand the msys mingw installation:
> You have msys64/usr/bin/gcc which behaves most unix like but
> for deployment it needs cygwin. So this gcc is best used to compile
> tools which you only use within the msys installation. The compiler is
> used as standard if the shell is run from:msys2_shell.bat
>
> Then you have msys64/mingw64/bin/gcc which is equal to
> x86_64-w64-mingw32-gcc and is made to compile windows64 bit
> such that you can get a single file without the need for dlls.
> So my guess was always that msys64/mingw64/bin/gcc is the compiler to
> use for win64.
>
> Indeed the microsoft visual studio compiler has sizeof(long) 4 in
> both 32 and 64 bit.
>
> This is as much as I could find on the topic:
> http://stackoverflow.com/questions/7607502/sizeoflong-in-64-bit-c
>
> https://cygwin.com/cygwin-ug-net/programming.html
>
> I guess it would be safest to replace all long by long long in gmp and gcl.
>
> And then compile with gcc in mingw64.
>
> Best regards
> Kilian
>
>
> Am 25.11.2014 um 17:48 schrieb Camm Maguire:
>> Greetings, and thank you again for making this machine available.
>>
>> I am confused at the diversity of abi's and do not know how to proceed.
>>
>> The c:/msys64/usr/bin/gcc has an 8 byte long, whereas
>> c:/msys64/mingw64/bin/gcc has 4 bytes, forcing gcl to work with 'long
>> long'. The system gmp libraries also apparently have a 4 byte long, so
>> we need to either build our own or download a version with a 'long long'
>> gmp limb. I've attempted this, but gmp has a configure error in this
>> configuration, at least on first attempt.
>>
>> I don't see why we don't try to work with c:/msys64/usr/bin/gcc, except
>> for the fact that apparently external packages, like mingw gmp, have
>> been built with a 4 byte long, and because I really don't know what it
>> is :-). Ultimately we need for this to work 'out of the box' with
>> whatever the 'standard user' will install.
>>
>> Is there a standard here? If it is a four byte long, do you know if gmp
>> can be built with a long long limb? The documentation does not list
>> mingw explicitly among the possible targets in this regard. Can we work
>> rather with c:/msys64/usr/bin/gcc?
>>
>> Take care,
>>
>
>
>
>
>
--
Camm Maguire address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah
_______________________________________________
Gcl-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/gcl-devel
[Prev in Thread] | Current Thread | [Next in Thread] |