Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

gcc & glibc & ABI compatibility?

807575Aug 25 2006 — edited Aug 28 2006
This questions are for Mr. Roman Shaposhnik,

What problems should I expect to encounter in the current preview release of Sun Studio for linux with respect to gcc & glibc & ABI compatibility?

What are the recommended equivalent CFLAGS to something like "-O2 -march=i686 -pipe -fomit-frame-pointer" for Sun Studio in linux?

May I assume that the code compiled with Sun Studio in linux is less suceptible to buffer overflow attacks, i.e. is it like having smash stack protection in gcc?

Is it possible to bootstrap gcc or compile glibc with Sun Studio for Linux or is it pointless?

Any guidance is greatly appreciated. I've had various degrees of succes compiling stuff in Solaris 10 x86 with Studio 10 and 11 but the case is this:

I run some developement machines on Solaris 10 x86 06/06 with Sun Studio 11 and I had issues trying to compile programs designed to use gcc + glibc + nasm. Usually, multimedia libraries and multimedia programs give the most headaches ;) (xine-lib or equ-xmms both use very aggressive optimizations at compile time, like cpu autodetect features or SIMD instructions and I couldn't figure out how to make them work with Studio 11).

In my tests I've found that Sun Studio is an awesome compiler and a better compiler than gcc in Solaris, but due to the way gnu software is written it is usually hard to get it to compile right in one try without hacking some makefile or adding lots of include paths.

Thank you guys for making this release available and I look forward to some enlightening here!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2006
Added on Aug 25 2006
4 comments
614 views