mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2011-01-29, 18:39   #12
tichy
 
Nov 2010

7610 Posts
Default

Crosscompiling is not enough, more important will be glibc compatibility. Also in case of possible dynamic linkage to other libraries their versions should be checked to match.
Gcc has flags for all flavours of x86, i386 up.

Quote:
-mtune=cpu-type
Tune to cpu-type everything applicable about the generated code,
except for the ABI and the set of available instructions. The
choices for cpu-type are:

generic
Produce code optimized for the most common IA32/AMD64/EM64T
processors. If you know the CPU on which your code will run,
then you should use the corresponding -mtune option instead of
-mtune=generic. But, if you do not know exactly what CPU users
of your application will have, then you should use this option.

As new processors are deployed in the marketplace, the behavior
of this option will change. Therefore, if you upgrade to a
newer version of GCC, the code generated option will change to
reflect the processors that were most common when that version
of GCC was released.

There is no -march=generic option because -march indicates the
instruction set the compiler can use, and there is no generic
instruction set applicable to all processors. In contrast,
-mtune indicates the processor (or, in this case, collection of
processors) for which the code is optimized.

native
This selects the CPU to tune for at compilation time by deter-
mining the processor type of the compiling machine. Using
-mtune=native will produce code optimized for the local machine
under the constraints of the selected instruction set. Using
-march=native will enable all instruction subsets supported by
the local machine (hence the result might not run on different
machines).

i386
Original Intel's i386 CPU.

i486
Intel's i486 CPU. (No scheduling is implemented for this
chip.)
I have a notion that you are worrying too much. Just try it and we'll see if something (if anything) won't work.

Last fiddled with by tichy on 2011-01-29 at 19:22
tichy is offline   Reply With Quote
Old 2011-01-29, 19:43   #13
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

2·2,969 Posts
Default

Isn't a static build possible?
henryzz is offline   Reply With Quote
Old 2011-01-29, 19:59   #14
tichy
 
Nov 2010

22·19 Posts
Default

In general ? Sure, just link against static libraries (.a) and not the dynamic ones (.so)
tichy is offline   Reply With Quote
Old 2011-01-30, 02:43   #15
Commaster
 
Jun 2010
Kiev, Ukraine

3916 Posts
Default

Speaking about Windows, shouldn't KernelEx or something similar help you out?

Last fiddled with by Commaster on 2011-01-30 at 02:44
Commaster is offline   Reply With Quote
Old 2011-01-30, 05:01   #16
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

2×467 Posts
Default

Guys,

Thanks a bunch for all the ideas! I'm going to reveal my utter and nearly complete ignorance here, but would it be right to say that GCC might make it possible to create (compile) a version of FactorX that would work on that old edition of Windows?

Obviously I've got a lot of learning to do...

Rodrigo

Last fiddled with by Rodrigo on 2011-01-30 at 05:13 Reason: New sentence
Rodrigo is offline   Reply With Quote
Old 2011-01-30, 11:19   #17
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

10010111000102 Posts
Default

Quote:
Originally Posted by Rodrigo View Post
Guys,

Thanks a bunch for all the ideas! I'm going to reveal my utter and nearly complete ignorance here, but would it be right to say that GCC might make it possible to create (compile) a version of FactorX that would work on that old edition of Windows?

Obviously I've got a lot of learning to do...

Rodrigo
Meanwhile, I probably found an old AMD k6-350 (faster than P233 in integer math) with Linux installed.
If I get it to work, I'll try to compile a generic Factor5 for all Pentium platforms. Keep your fingers crossed...

Luigi

Last fiddled with by ET_ on 2011-01-30 at 11:19
ET_ is offline   Reply With Quote
Old 2011-01-30, 16:55   #18
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

3A616 Posts
Thumbs up

Quote:
Originally Posted by ET_ View Post
Meanwhile, I probably found an old AMD k6-350 (faster than P233 in integer math) with Linux installed.
If I get it to work, I'll try to compile a generic Factor5 for all Pentium platforms. Keep your fingers crossed...

Luigi
Luigi,

That would be fantastic!! Good luck!

Rodrigo
Rodrigo is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prime95 lock-ups on AMD under Linux airsquirrels Software 3 2016-01-17 14:38
Prime95 for PPC Linux frolyar Software 4 2015-07-27 14:10
prime95 for amd64 on GNU/Linux OR alternative? colo Software 3 2008-02-28 13:19
Prime95 (32-bit) on 64-bit Linux OK? fes016 Software 1 2007-10-29 01:50
prime95 linux stealthaxe Software 1 2003-05-16 17:55

All times are UTC. The time now is 10:50.


Fri Dec 3 10:50:13 UTC 2021 up 133 days, 5:19, 0 users, load averages: 1.52, 1.48, 1.32

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.