question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Oracle Compiler

See original GitHub issue

Another 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:closed
  • Created 7 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
mattgodboltcommented, Oct 2, 2018

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.

0reactions
chusABcommented, Apr 9, 2021

El 1/4/21 a las 21:37, Matt Godbolt escribió:

I’m going to close this: without a real champion for Oracle, plus the potential license issues, and the general feeling I have about Oracle…

Would happily take a patch to support it, but will not track it here any more.

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


Read more comments on GitHub >

github_iconTop Results From Across the Web

Oracle Live SQL
This tutorial provides an introduction to the Structured Query Language (SQL), learn how to create tables with primary keys, columns, constraints, ind...
Read more >
Oracle Instant Client Precompiler Downloads
Oracle Instant Client Precompiler Downloads. Additional Oracle Instant Client tools and libraries providing the Pro*C and Pro*COBOL precompilers.
Read more >
SQL Developer - Oracle
Full PL/SQL IDE - compile, debug, document, test, source control and more · Click, browse, and managed the contents of your Oracle Database...
Read more >
Installing Micro Focus COBOL Compiler and License ... - Oracle
Before You Begin. Purpose. This tutorial shows you how to install Micro Focus® Server Express™ COBOL compiler and license for use with PeopleSoft...
Read more >
Oracle SQL Developer Downloads
To install and run. Download the file for OS X or ARM64 on the Downloads page; Extract zip file; Run application ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found