Solaris 10 - HW compatibility

Sorry, if this isn't the right forum for this question. I would like to compile an executable with gcc/g++ under Solaris 10 on the following OLDER SPARC-machine and then run this executable on the NEW SPARC-machine (see description down in this post). I'm wondering if it would be possible or if there can be some HW compatibility issues so that the executable won't work...?

OLDER SPARC-machine:
------------------
Sun Fire V480
(2 x 900 MHz 64-bit Cu UltraSPARC-III w/ 8MB L2 cache
or
4 x 900MHz UltraSPARC IIIi CPU)

NEW SPARC-machine:
----------------
SPARC M5000
(SPARC64 VII+ quad-core processors)

What you're proposing should work fine.

Just be sure the version of Solaris on the v480 is the same or earlier than the version on the M5000.

FWIW, if you have significant performance requirements, IME Solaris Studio compilers do a much better job of optimizing for SPARC servers than GCC does. If your code is GCC-specific, though, or goes way out into the nether reaches of the language specs, GCC may be your only option.

1 Like

They are both sun4u systems running Solaris 10. You should be ok.

1 Like

Thank you for your answers. As soon as I am finished with some tests, I will post the results here.

Thx again, it was tested and it works fine... :b: