mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   linux question ( newb) (https://www.mersenneforum.org/showthread.php?t=1785)

crash893 2003-12-26 00:03

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

S00113 2003-12-26 02:11

Re: linux question ( newb)
 
[QUOTE][i]Originally posted by crash893 [/i]
[B]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
[/B][/QUOTE]
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][B]
is one better than the other or are they ment for two diffrent versions of linux
[/B][/QUOTE]
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.

[B][QUOTE]
how do they compare in speed to a windows based prime95 [/B][/QUOTE]
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.

GP2 2003-12-26 18:50

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.


All times are UTC. The time now is 16:22.

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