views:

165

answers:

4

Right. I'm currently in a class that is exploring many different programming languages. Among them are COBOL and Ada, both of which I can't seem to find a free compiler. Has anyone had better luck and if so, where might I find them? Thanks!

+2  A: 

gcc's Ada compiler, gnat, does not come with Xcode so you will need to find it elsewhere or build it from source. Free COBOL compilers are a bit harder to find.

Ignacio Vazquez-Abrams
Hmm, thanks, but that doesn't really give me useful information. I will keep searching, thanks!
Grimless
How did this answer get a +2? - There are far more usefull answers here like the one from trashgod!
Martin
+4  A: 

You want the GNAT GPL Edition.

trashgod
I haven't been able to set it up the way I wanted, but it will work for now. Thank you for the link!
Grimless
This will get you Ada but not COBOL.
NealB
@NealB: Quite right; fortunately, others more familiar with COBOL responded.
trashgod
+3  A: 

The OpenCOBOL compiler is free. As far as I know there are versions for Windows, Linux and Mac OS X - http://www.opencobol.org

Edit : A possible option might be Veryant isCOBOL http://www.veryant.com. Veryant are due to release a student version (i.e. restricted) of their compiler. Veryant's isCOBOL compiler compiles to a Java run-time and as such may run on OS X.

Their faq http://www.veryant.com/products/faq.php?type=all states that "Being Java-based, the isCOBOL Compiler runs on any platform that supports a Java Development Kit (JDK) version 1.4.2 or greater. The isCOBOL Debugger and isCOBOL compiled code can run on any platform that supports a Java Runtime Environment (JRE) of 1.4.2 or later. Thus, isCOBOL APS supports a wealth of platforms including AIX, HP-UX, Linux, Solaris and Windows. The only exception to this is isCOBOL ISAM ODBC, which currently runs only on Windows."

colemanj
I checked their site, and they claim it has been built on OSX, but there is no prebuilt available for it. That means Grimless would have to build it from sources him/herself. How easy that is depends on the makefiles, but generally such a task is not for beginners or the faint of heart.
T.E.D.
As ugly a prospect as this is, I am not sure there are any better options (at least for a free compiler).
NealB
+3  A: 

There is much available for Ada at http://libre.adacore.com/libre/, including Eclipse plugins and IDEs. Free downloads are available for students.

tomwhipple
Free (libre and beer) downloads are available for anyone! AdaCore have an academic program (GAP), http://www.adacore.com/home/academia/gap/, which includes support too.
Simon Wright
You can also build your own copies from sources if you like, as it is a full-fledged part of GCC. However, I think doing so gives your program the GPL infection.
T.E.D.