mersenneforum.org  

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

Reply
 
Thread Tools
Old 2003-12-26, 00:03   #1
crash893
 
crash893's Avatar
 
Sep 2002

12816 Posts
Default linux question ( newb)

i know very little about linux in general but i was wondering if some one could explian the two diffrent linux versions

the
dynamically linked
and the
static linked

versions

is one better than the other or are they ment for two diffrent versions of linux


how do they compare in speed to a windows based prime95
crash893 is offline   Reply With Quote
Old 2003-12-26, 02:11   #2
S00113
 
S00113's Avatar
 
Dec 2003

23×33 Posts
Default Re: linux question ( newb)

Quote:
Originally posted by crash893
i know very little about linux in general but i was wondering if some one could explian the two diffrent linux versions

the
dynamically linked
and the
static linked
Static linked binaries contain everything they need to run within the binary. Dynamically linked binaries are smaller, and depend on some functions to be availiable in external libraries. If the libraries are not availiable, or are too old, mprime will not run. The current version only link to libc (standard C library) and libm (standard math library).

The advantages of a dynamically linked binary is that it
o is smaller
o may share library functions with other programs (conserves memory)
o will take advantage of optimized libraries where availiable, and your Linux distro almost certainly provide optimized libc and libm for your platform.

A statically linked binary
o may load faster, becuase you don't have to look for libraries. But it's bigger too, so your mileage may vary.
o can run even if the required libraries are not availiable, i.e. if you are running on an ancient distro.

Quote:

is one better than the other or are they ment for two diffrent versions of linux
Use the dynamically linked version if it works. The main advantage beeing optimized libc and libm. The static version will save you if mprime complains about not finding some library.

Quote:
how do they compare in speed to a windows based prime95
I have no idea.. I have two very old Windows machines doing trial factoring somewhere. The rest, more than two hundred, run Linux or some other operating system.
S00113 is offline   Reply With Quote
Old 2003-12-26, 18:50   #3
GP2
 
GP2's Avatar
 
Sep 2003

1010000101012 Posts
Default

Basically, you should use the dynamic version (mprime), it will work for most people. Only try the static version (sprime) if the dynamic version can't execute because of missing libraries.
GP2 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newb who needs help with PC EddieTheBear Hardware 19 2015-10-23 13:22
Newb question PicGrabber Msieve 20 2014-10-31 20:06
100MD LL Test - Newb Question Neo Information & Answers 6 2011-01-02 16:01
Possibly stupid question about porting games to Linux. jasong Linux 4 2006-12-23 21:24
a simple question on the Linux client nngs Software 1 2005-11-27 01:39

All times are UTC. The time now is 14:32.

Sat Nov 28 14:32:52 UTC 2020 up 79 days, 11:43, 4 users, load averages: 1.47, 1.41, 1.42

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.