Add Oracle Compiler
See original GitHub issueAnother free (as in beer) available compiler is the Oracle C/C++ compiler (aka Oracle Developer Studio, previously Solaris Studio) is derived from the Sun compiler line, cf. https://en.wikipedia.org/wiki/Oracle_Developer_Studio .
Adding it to the GCC explorer would be convenient for comparison purposes.
Nowadays, the compiler is also available for Linux:
http://www.oracle.com/technetwork/server-storage/developerstudio/downloads/index.html
The license seems to be free-as-in-beer-ish:
Download Options for Oracle Developer Studio
Current Release - Oracle Developer Studio 12.5
Provides perpetual no-cost license for production use and the development of
commercial applications.
The IMHO most convenient install method is to use the provided tar files:
http://www.oracle.com/technetwork/server-storage/solarisstudio/downloads/solaris-studio-2333112.html
The x86 tar file is 445 MB big. An Oracle account is needed for the download. The account is relatively easy to create - Mailinator throw away email addresses do work.
The install steps basically are:
$ sha256sum OracleDeveloperStudio12.5-linux-x86-bin.tar.bz2
0989078e1025cca88ac30324896c820eb9ea0fa6cc9554867a6c068585d47554
*OracleDeveloperStudio12.5-linux-x86-bin.tar.bz2
$ tar xf /mnt/ex/OracleDeveloperStudio12.5-linux-x86-bin.tar.bz2
$ # the install prefix doesn't matter much because libraries are reference
$ # relative to the $ORIGIN
$ mv OracleDeveloperStudio12.5-linux-x86-bin/developerstudio12.5/ /opt
$ # delete some GUIs
$ rm -rf /opt/developerstudio12.5/lib/netbeans/
$ # delete the Oracle DB 'instant' client - saves some hundreds MiB
$ rm -rf /opt/developerstudio12.5/OIC/
$ du -sh /opt/developerstudio12.5/
774M /opt/developerstudio12.5/
First test:
$ cat hello.c
#include <stdio.h>
int main(int argc, char **argv)
{
printf("Hello %s!\n", argv[1]);
return 0;
}
$ /opt/developerstudio12.5/bin/cc hello.c
$ ./a.out foo
Hello foo!
The Oracle Studio C++ compiler (CC) uses a bundled GNU STL version - a small C++ test programs also compiles and works as expected.
$ /opt/developerstudio12.5/bin/CC hello.cc
$ ldd a.out
linux-vdso.so.1 (0x00007ffdbe7d5000)
libstdc++.so.6 => /opt/developerstudio12.5/lib/compilers/CC-gcc/lib/amd64/libstdc++.so.6 (0x00007fd600f4b000)
libgcc_s.so.1 => /opt/developerstudio12.5/lib/compilers/CC-gcc/lib/amd64/libgcc_s.so.1 (0x00007fd600d33000)
libCrunG3.so.1 => /opt/developerstudio12.5/lib/compilers/rtlibs/usr/lib/amd64/libCrunG3.so.1 (0x00007fd600b2c000)
libm.so.6 => /lib64/libm.so.6 (0x00007fd60080f000)
libc.so.6 => /lib64/libc.so.6 (0x00007fd60044d000)
libstatomic.so.1 => /opt/developerstudio12.5/lib/compilers/atomic/amd64/libstatomic.so.1 (0x00007fd600246000)
/lib64/ld-linux-x86-64.so.2 (0x0000556915425000)
Issue Analytics
- State:
- Created 7 years ago
- Comments:15 (9 by maintainers)
Top GitHub Comments
I’ve really not had much time. I’d welcome someone else taking a look at this. We have some docs in the
docs/
directory that might help someone else finish the work here.El 1/4/21 a las 21:37, Matt Godbolt escribió:
Dear Matt
Completely agree. As of today, I think it is of no interest to add this compiler.
Kind regards
–
Jesús Alastruey Benedé - Profesor Contratado Doctor http://webdiis.unizar.es/~chus/ Tel: +34 976 762339 fax: +34 976 761914 gaZ - Grupo de Arquitectura de Computadores Dpto. de Informática e Ingeniería de Sistemas EINA (Edificio Ada Byron) - Universidad de Zaragoza