RS: [Beowulf] Sempron compile optimization
siegert at sfu.ca
Wed Nov 23 19:31:43 EST 2005
On Thu, Nov 24, 2005 at 10:17:41AM +1100, Chris Samuel wrote:
> On Thursday 24 November 2005 10:13, Steffen Persvold wrote:
> > However, I do think it is rather annoying that gcc on ppc64 produces 32bit
> > binaries by default.
Actually, people may think differently about that: 32bit code may
run slightly faster. Thus, if you do not need the address space you
just as well can compile in 32 bit mode.
> > I believe the IBM compiler produce 64bit.
> Unfortunately not.
> $ xlc hello.c -o t2
> 1506-503 (W) Option "-qlongdouble / -qldbl128" is not supported for LINUX for Power.
This looks like a misconfiguration to me - you should not get that error
$ xlc -o t2 hello.c
$ file t2
t2: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped
$ xlc -q64 -o t2 hello.c
$ file t2
t2: ELF 64-bit MSB executable, cisco 7500, version 1 (SYSV), for GNU/Linux 2.4.21, dynamically linked (uses shared libs), not stripped
> $ file t2
> t2: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped
> Hey ho, at least it's consistently disappointing.. :-)
Defaults are more or less a matter of taste ...
What is really disappointing is that most (?) configure scripts (and
libtool, etc.) break when you compile in 64bit mode (xlc -q64 ...
or gcc -m64 ...): Even though x86_64 is around for a while now I still
run into numerous configure scripts that blindly search /usr/X11R6/lib
for libX11.so and after finding it there try to compile with
-L/usr/X11R6/lib -lX11 without checking that that library is actually
useless when -m64 is specified and that they should have looked in
/usr/X11R6/lib64 instead (or better not specify -L... at all and
let the compiler find the library itself).
Head, HPC at SFU
WestGrid Site Manager
Academic Computing Services phone: (604) 291-4691
Simon Fraser University fax: (604) 291-4242
Burnaby, British Columbia email: siegert at sfu.ca
Canada V5A 1S6
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf
More information about the Beowulf