mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Programming

Reply
 
Thread Tools
Old 2008-08-27, 18:39   #1
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29·41 Posts
Default Binaries for 64-bit windows

Hi Jason, can you (or anyone else) create a 64 bits windows binary?

Or wouldn't make this any difference?
smh is offline   Reply With Quote
Old 2008-08-27, 18:42   #2
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22·5·373 Posts
Default

Quote:
Originally Posted by smh View Post
Hi Jason, can you (or anyone else) create a 64 bits windows binary?

Or wouldn't make this any difference?

What compilers are available that will emit 64-bit code for Windows?
R.D. Silverman is offline   Reply With Quote
Old 2008-08-27, 20:00   #3
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2×3×13×137 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
What compilers are available that will emit 64-bit code for Windows?
|I believe Visual Studio is capable of doing the job.

Otherwise, I wonder how MSFT are building 64-bit versions of Windows. It's not revealing any trade secrets to say that that's how they built Windows when I worked for MSR.


Paul
xilman is offline   Reply With Quote
Old 2008-08-27, 20:03   #4
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

1101110100102 Posts
Default

A few people have compiled their own 64-bit windows binaries (I know miklin and Brian Gladman have, and I think jbristow as well). I don't have the means to do so myself. The performance will not be drastically better, but if you have a lot of memory and need to handle a large NFS job then 64-bit windows will work where 32-bit windows may not.

Bob, I think the latest Visual Studio can emit 64-bit code, but you may need a separate 64-bit version of the compiler (and of course a 64-bit windows system to run it on). The MinGW folks were working on a 64-bit gcc cross-compiler that was hosted on 32-bit windows, but I don't know how far along that is.
jasonp is offline   Reply With Quote
Old 2008-08-27, 20:54   #5
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

22×7×337 Posts
Default

I have access to a decent 64-bit Windows box and will build it tonight. (I need the users to leave... because I may swear a lot. No, not because of that really.)
Cygwin or MinGW? I'll try to build both.
Batalov is offline   Reply With Quote
Old 2008-08-27, 23:04   #6
FactorEyes
 
FactorEyes's Avatar
 
Oct 2006
vomit_frame_pointer

23·32·5 Posts
Default

Quote:
Originally Posted by Batalov View Post
I have access to a decent 64-bit Windows box and will build it tonight. (I need the users to leave... because I may swear a lot. No, not because of that really.)
Cygwin or MinGW? I'll try to build both.
I'm sitting on a 64-bit Windows box with 4 cores, which usually runs Linux, but I boot Vista when I'm working remotely.

For 64-bit, Cygwin ain't happenin' yet, and MinGW doesn't exist for that platform either. Your only option is Visual Studio, and some cunning with the build process. I don't know if there exists a set of build files which will work with current versions of Visual studio to produce a 64-bit executable.

Msieve is probably the best place to start playing with 64-bit Visual Studio. Probably not much work, but I haven't tried it.

Other, long term nice-to-haves: A 64-bit GMP-ECM for Windows, and, as several have noted here, 64-bit Windows executables of gnfs-lasieve4Ixxx running. I have poked through the code, but there is so much that I don't yet understand that I have little hope of refactoring the Franke lattice-siever code into something I could build with Visual Studio (writing unmanaged C code) and MASM (or NASM) assembler modules. Sigh. It would be nice to refactor (not re-write) the Franke lattice-siever .asm and C modules into human-readable form, together with AT&T syntax for the assembler stuff, so that it can be compiled on a wider collection of platforms.

I wrote an ECM in about 1995. I remember thinking it was hard to get the C-to-asm interface just right, and dovetail the modules together. Now those look like the good old days.
FactorEyes is offline   Reply With Quote
Old 2008-08-27, 23:25   #7
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

943610 Posts
Default

...that goes to show that I didn't pay attention to what the W64 box was trying to tell me. Surely, I installed Cygwin and MinGW on that thing (in a short time that I was toying with it), but did I check that they were running in the 32-bit subsystem? Most definitely not. I'll have a look tonight just to do this -


P.S. EDIT - Yep. Very lively forum there, too. Could be fun, tonight.

Last fiddled with by Batalov on 2008-08-27 at 23:54
Batalov is offline   Reply With Quote
Old 2008-08-27, 23:31   #8
FactorEyes
 
FactorEyes's Avatar
 
Oct 2006
vomit_frame_pointer

1011010002 Posts
Cool

Quote:
Originally Posted by Batalov View Post
...that goes to show that I didn't pay attention to what the W64 box was trying to tell me. Surely, I installed Cygwin and MinGW on that thing (in a short time that I was toying with it), but did I check that they were running in the 32-bit subsystem? Most definitely not. I'll have a look tonight just to do this -
Heh. I will be most delighted to be proven wrong, believe me. In fact, some further Google activity suggests that there is some MinGW activity in that direction. I'm still poking around...

EDIT: Heeere we go (it's in alpha, of course) -- http://sourceforge.net/projects/mingw-w64/

Last fiddled with by FactorEyes on 2008-08-27 at 23:34
FactorEyes is offline   Reply With Quote
Old 2008-08-28, 00:16   #9
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

60778 Posts
Default

I have been trying that mingw-64 and been trying to compile GMP and GMP-ECM but I'm stuck at GMP so far.

I tried building GMP-ECM in visual studio but stuck there too.
ATH is offline   Reply With Quote
Old 2008-08-28, 01:47   #10
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

2·29·61 Posts
Default

Quote:
Originally Posted by FactorEyes View Post
I don't know if there exists a set of build files which will work with current versions of Visual studio to produce a 64-bit executable.

Msieve is probably the best place to start playing with 64-bit Visual Studio. Probably not much work, but I haven't tried it.
If using the VC9 project included with msieve doesn't build a working binary, or complains at all, I definitely want to know about it.

The latest version of GMP-ECM also includes a VC9 build project, also courtesy of Brian Gladman, and he figured out how to get GMP to build in Visual Studio as well. He even converted the assembly language into MASM files. It should work in the 64-bit environment too.
jasonp is offline   Reply With Quote
Old 2008-08-28, 05:21   #11
jbristow
 
jbristow's Avatar
 
Aug 2007

3×31 Posts
Default

I haven't tried msieve 1.37, but building a 64-bit msieve 1.36 was easy using Brian Gladman's project files for VC9. I believe Microsoft had a free trial download of VC9 on their website a few months ago. Don't get Express, as it won't build 64-bit code.
jbristow is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binaries needing updated Stargate38 YAFU 3 2016-01-14 05:10
Mac Os X binaries ValerieVonck Software 6 2012-05-15 20:27
Nonstandard lasieve binaries fivemack Factoring 8 2010-04-27 18:59
srsieve windows binaries geoff Sierpinski/Riesel Base 5 12 2006-07-28 03:29
Need binaries for Solaris x64 rgiltrap Software 4 2006-04-27 06:55

All times are UTC. The time now is 12:42.

Mon May 17 12:42:31 UTC 2021 up 39 days, 7:23, 0 users, load averages: 1.91, 1.93, 1.77

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.