SUMMARY: US-IIICu, Fujitsu's sparc64 and The Sun Studio Compilers...

From: <coyote_at_cojot.name>
Date: Mon May 16 2005 - 16:20:16 EDT
Hi everyone,

I got no answer so I tried it myself after I got access to a PP250N here..

1) I compiled a very simple program with Sun Studio 10 on a SunBlade 2000 
(dual 900Mhz US-IIICu processors):

$ cat time.c
#include <stdio.h>
#include <time.h>

main()
{
         time_t time_crap;

         time(&time_crap);
         printf("%s", ctime(&time_crap));
         return(0);
}

2) The following binary was obtained using
  /opt/SUNWspro/bin/cc -fast -o time time.c

$  file time
time: ELF 32-bit MSB executable, SPARC32PLUS, V8+ Required, Sun UltraSPARC1 Extensions Required, Sun UltraSPARC3 Extensions Required, 
version 1 (SYSV), dynamically linked (uses shared libs), not stripped

3) This binary could not execute on US-II (sb150, E4500, etc..) machines but 
it executed just fine on a PrimePower 250N running Solaris 9.

Of course, in order to optimize its execution on Fujitsu machines, this 
binary would have to be recompiled with Fujitsu's own compiled suite but 
at least it works as-is on "sparc64 V" processors (tested on 1320Mhz 
sparc64 V).

Thanks for reading,

Vincent

On Thu, 12 May 2005 coyote@cojot.name wrote:

>
> Dear Sun Managers,
>
> In the midst of SUN telling us to ask Fujitsu and Fujitsu saying they're 
> 100%-compatible-period, I'd like to verify something:
>
> I have inherited an app which was compiled on a V480 (US-IIICu/US-III+) with 
> a relatively recent Sun Studio. The '-fast' argument was used during compile, 
> resulting in '-xarch=native' thereby implying '-xarch=ultra3cu' on a V480.
>
> I know that such US-III optimized binaries won't execute at all on sun4u 
> systems using US-II, US-IIe, US-IIi processors.
>
> My question here is: Will the code execute at all on a Fujitsu PrimePower 
> 250N (sparc64 V, 1.32GHz, sun4us) if it was compiled with 
> '-xtarget=ultra3cu'?
>
> My guts feeling is that it won't execute (After all, Fujitsu has their own 
> compiler suite) and will need to be recompiled.. I am unable to 
> verify/validate this because I do not have a Fujitsu test machine at this 
> time.
>
> Anyone with more information/experience/documents?
>
> Thanks for reading,
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon May 16 16:20:37 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:46 EST