[kde-solaris] Compiler support
lars.tunkrans at bredband.net
Thu May 10 19:29:56 CEST 2007
Ananth A wrote:
> i am new to this list and was going through some of the list archives.
> i have a question regarding which compiler to use/support for kde
> since i couldnt figure out if a consensus was reached or not.
> gcc, suncc or both ?
> before i start compiling/testing the kde sources, which compiler would
> you recommend to use ???
> i am assuming that gcc/g++ would be easier since most of linux/bsd
> folks would use gcc and would require less patch work of the default
> svn code.
> does opensolaris require full support compiled under sun studio also
> for running kde or would a binary from gcc be good enough ??
> is there any technical advantage of using one compiler over the other ??
> i am currently running belenix on an athlon xp machine.
Lots of people have compiled KDE with GCC including myself.
It is not difficult, basically no Patches at all is needed not
even using a SPARC workstation.
GCC is included in Solaris/OpenSolaris as /usr/sfw/bin/gcc
$ uname -a
SunOS shuttle 5.11 snv_63 i86pc i386 i86pc
$ ./gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs
Configured with: /builds1/sfwnv-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-20050802)
Sun's Studio Compilers ( which are now free for Sun Devloper Network
And also included in Solaris Express Developer Edition
$ cd /opt/SUNWspro/bin
$ ./cc -V
cc: Sun C 5.9 SunOS_i386 Build40_1 2007/02/08
The studio compilers has always generated faster binaries than GCC
although GCC has picked up speed during the latter years.
The latest Studio 11 and Studio 12 ( Beta ) releases have
Improved support for AMD processors including SSE2/3DNOW support ,
small and medium Memory models ( medium is for apps larger than 2
GB memory footprint )
and automatic parallelization of code for multicore CPU systems.
Stefan Teleman has literally spent years at building KDE with
sunstudio and you will find
links to where all his pathces are held in the KDE-Solaris mailing
More information about the kde-solaris