RS: [Beowulf] Sempron compile optimization

Chris Samuel csamuel at vpac.org
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
ppc64
$ 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 http://www.vpac.org/
 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 : http://www.scyld.com/pipermail/beowulf/attachments/20051124/c61c9d35/attachment.bin


More information about the Beowulf mailing list