RS: [Beowulf] Sempron compile optimization

Chris Samuel csamuel at
Wed Nov 23 14:55:40 PST 2005

On Thursday 24 November 2005 03:43, Robert G. Brown wrote:

> Again, it was my understanding that if you run an x86_64 version of a
> distro, the kernel, the libraries, and the applications are all compiled
> with gcc which is ITSELF compiled for that architecture, and gcc
> defaults to doing the right thing and linking the right libraries
> automagically.

Not AMD64, but SuSE SLES 9 for PPC64 on Power5 the system supplied GCC outputs
32-bit code by default, you *must* specify -m64 if you want 64 bit objects.

$ arch
$ gcc hello.c -o t1
$ file t1
t1: 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

 Christopher Samuel - (03)9925 4751 - VPAC Deputy Systems Manager
 Victorian Partnership for Advanced Computing
 Bldg 91, 110 Victoria Street, Carlton South, VIC 3053, Australia

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the Beowulf mailing list