mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Factoring

Reply
 
Thread Tools
Old 2009-06-11, 18:24   #1
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

1100010101102 Posts
Default Factorcyc

Can anyone please compile akruppa's program factorcyc for windows? I prefer Windows 64 bit, but 32bit will do:

http://www.mersenneforum.org/showpos...&postcount=149
ATH is offline   Reply With Quote
Old 2009-06-12, 07:20   #2
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

22×7×19 Posts
Default

Quote:
Originally Posted by ATH View Post
Can anyone please compile akruppa's program factorcyc for windows? I prefer Windows 64 bit, but 32bit will do:

http://www.mersenneforum.org/showpos...&postcount=149
This is possible but it will be quite hard to do becaause it contains x64 inline assembler sections without C or 32-bit assembler alternatives and this means it cannot be compiled in 32-bit mode.

Moreover, the inline assembler is in GCC format so it will need either a 64-bit GCC on Windows or the Intel compiler because the MSVC x64 compiler does not offer inline assembler capabilities.

The Intel compiler should succeed and Mingw64 might also work but I am not sure whether it can now compile GMP (or MPIR) - it failed last time I tried but this was some time ago and it is now more mature.

I have built GMP 4.2.x and MPIR using the Intel compiler but GMP 4.3 with fast assembler code support won't work on Windows x64 because the assembler code is only available using the Linux ABI conventions.

So it is very likely that this will need either the mingw64 GCC or the Intel compilers with MPIR or GMP 4.2.x (rather than GMP 4.3) if speed is important.

Brian

Last fiddled with by Brian Gladman on 2009-06-12 at 07:22
Brian Gladman is offline   Reply With Quote
Old 2009-06-12, 09:30   #3
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

1100010101102 Posts
Default

Last time I tried I couldn't get Mingw64 to compile GMP, guess I'll try again with new GMP version.
ATH is offline   Reply With Quote
Old 2009-06-12, 19:44   #4
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

2,467 Posts
Default

There's a newer version at http://www.loria.fr/~kruppaal/factorcyc.20090612.c
It's faster (the ridiculous inversion modulo 2^64 was replaced by lifting) and primes used for sieving are not skipped in the trial divison any more. Note: if your divisors are <2^64, GMP is not used for the trial division (only for setup) so you can use any GMP version with no effect on speed.

Alex

Last fiddled with by akruppa on 2009-06-12 at 19:46
akruppa is offline   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 15:39.


Fri Aug 6 15:39:17 UTC 2021 up 14 days, 10:08, 1 user, load averages: 2.71, 2.62, 2.73

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.