Can Sun Studio and forte versions coexist in SPARC machine

We have forte 6.2u2 version of C++ compilers in our Solaris 5.9 development & production machines(SPARC) . All of the production codes were compiled with this version.

If we want to use the latest version of Sun Studio compiler:

1. Can the older version exist together with the new one?

2. Do we need to install the compiler and runtime libraries in the production machine also? Normally we compile in the development server and transfer the binary to production.

3. Do we have to recompile existing code using this compiler to work in production?

Thanks

[595 byte] By [ramukeers] at [2007-11-26 10:50:30]
# 1

> 1. Can the older version exist together with the new

> one?

Yes, it can be installed to the other directory. Several versions of Sun Studio can co-exist on one machine.

> 2. Do we need to install the compiler and runtime

> libraries in the production machine also? Normally we

> compile in the development server and transfer the

> binary to production.

Please see the answer to the next question.

> 3. Do we have to recompile existing code using this

> compiler to work in production?

Well, this is always an option (I mean recompiling all code with new compiler), but for more smooth transition you can also start with compiling only changed files with new compiler. In this case, it is essential that you link with the new compiler, not the old one.

And because new compiler will place dependencies on newer libraries, your production system must have them. It doesn't need compiler, however.

MaximKartashev at 2007-7-7 3:03:07 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

> 1. Can the older version exist together with the new

> one?

Yes, it can be installed to the other directory. Several versions of Sun Studio can co-exist on one machine.

> 2. Do we need to install the compiler and runtime

> libraries in the production machine also? Normally we

> compile in the development server and transfer the

> binary to production.

Please see the answer to the next question.

> 3. Do we have to recompile existing code using this

> compiler to work in production?

Well, this is always an option (I mean recompiling all code with new compiler), but for more smooth transition you can also start with compiling only changed files with new compiler. In this case, it is essential that you link with the new compiler, not the old one.

And because new compiler will place dependencies on newer libraries, your production system must have them. It doesn't need compiler, however.

MaximKartashev at 2007-7-7 3:03:07 > top of Java-index,Development Tools,Solaris and Linux Development Tools...