Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Ada95 on OS X?

Ada95 on OS X?
Thread Tools
iJed
Dedicated MacNNer
Join Date: May 2001
Location: Edinburgh, UK
Status: Offline
Reply With Quote
Oct 21, 2001, 09:17 PM
 
Is there an Ada95 compiler available for Mac OS X? I am being forced to use this language for comp sci at uni for the second year running so I could really do with a Mac OS X native compiler. I know that the source code for GNAT is available but I assume that it does not build Mac OS X PPC binaries so I have not tried compiling it. Any help would be, err..., helpful.
     
speirsfr
Dedicated MacNNer
Join Date: Nov 2000
Location: Glasgow
Status: Offline
Reply With Quote
Oct 22, 2001, 03:27 AM
 
Heh, I bet you go to uni here.

Don't know about gnat. I don't think you should *assume* that it won't work - I thought GNAT was just some kind of frontend to the gcc backend. There was a distro of gnat for powerpc Linux a while back, but I never got that to work either....

Maybe check fink (http://fink.sourceforge.net)?
Fraser
PowerBook G4 17"
Power Mac G4/800, 1Gb RAM, 80Gb HDD, Superdrive, GeForce 4MX, Gateway 21" CRT, Apple Pro Speakers, iSub - Running Mac OS X Server 10.2
iBook 500, 192MbRAM - Running Mac OS X 10.2
iPod 5Gb
     
iJed  (op)
Dedicated MacNNer
Join Date: May 2001
Location: Edinburgh, UK
Status: Offline
Reply With Quote
Oct 22, 2001, 04:44 PM
 
Originally posted by speirsfr:
<STRONG>Heh, I bet you go to uni here.
</STRONG>
You are correct here! Glasgow must be the only University in the UK if not the world that uses Ada!

<STRONG>
Don't know about gnat. I don't think you should *assume* that it won't work - I thought GNAT was just some kind of frontend to the gcc backend. There was a distro of gnat for powerpc Linux a while back, but I never got that to work either....
</STRONG>
I think you may be correct about GNAT - it seems to be some kind of translator rather than a compiler. I think I'll download it and try and compile it.
     
eevyl
Grizzled Veteran
Join Date: Dec 2000
Location: Málaga, Spain, Europe, Earth, Solar System
Status: Offline
Reply With Quote
Oct 22, 2001, 05:08 PM
 
Count one more University that uses Ada. I study at Universidad de M�laga and I have to use Ada95 for some realtime system programming.

I was also wondering if the UNIX sources of GNAT Ada95 would work on Mac OS X. I will download them and try too.
     
speirsfr
Dedicated MacNNer
Join Date: Nov 2000
Location: Glasgow
Status: Offline
Reply With Quote
Oct 23, 2001, 07:33 AM
 
iJed, Ada is good for you. Honest. Wait till you take the DCS Haskell course (Functional Programming 2), then you will want to be back in ada ;-)

Anyway, I had a play about with gnat 3.13, and it is designed to be compiled with gcc 2.8.1 (which I couldn't get to compile on OSX 10.1: "Configuration powerpc-apple-darwin1.4 not supported")

I'm hesitant to replace the cc that comes in the dev tools, but my plan of attack would be to recompile the appropriate gcc and put it somewhere else like /usr/local/gnat/ and get that into your path.

GNAT does seem to be a frontend to the gcc code generator, so I would expect it to be able to emit binaries for Darwin, if you can get it all to compile.

Maybe you should check out the gcc from Darwin instead of the GNU one, which is what I did.

More info will come if I get any more.
Fraser
PowerBook G4 17"
Power Mac G4/800, 1Gb RAM, 80Gb HDD, Superdrive, GeForce 4MX, Gateway 21" CRT, Apple Pro Speakers, iSub - Running Mac OS X Server 10.2
iBook 500, 192MbRAM - Running Mac OS X 10.2
iPod 5Gb
     
iJed  (op)
Dedicated MacNNer
Join Date: May 2001
Location: Edinburgh, UK
Status: Offline
Reply With Quote
Oct 23, 2001, 03:29 PM
 
Originally posted by speirsfr:
<STRONG>iJed, Ada is good for you. Honest. Wait till you take the DCS Haskell course (Functional Programming 2), then you will want to be back in ada ;-)
</STRONG>
What language do they use in FP2? I hope it is Java or some form of C since I have been programming in both for a few years and am much more skilled in them than I am in Ada.
     
Kristoff
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Oct 24, 2001, 02:18 AM
 
If it makes you all feel any better, I had to use Ada 95 as well at Northern Arizona University for a course on RTS.
It was my first exposure, and it was interesting, but I much prefer Java, but then again, I don't make RTS for a living either.
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
speirsfr
Dedicated MacNNer
Join Date: Nov 2000
Location: Glasgow
Status: Offline
Reply With Quote
Oct 24, 2001, 06:59 AM
 
Originally posted by iJed:
<STRONG>

What language do they use in FP2? I hope it is Java or some form of C since I have been programming in both for a few years and am much more skilled in them than I am in Ada.</STRONG>
Haskell.

It's a functional language about which I have forgotten more than I ever want to remember again. I recall it had some nice syntax features (like list generators) but it's a case of a language that "takes an ideological point of view and drives it into the ground" (was it Larry Wall that said that?)

It shows a distressing lack of recognition of the world outside lambda-calculus. OK, and now I'm showing a distressing lack of knowledge of Haskell.

I'll stop talking about stuff I'm not qualified to discuss now, OK?
Fraz
PowerBook G4 17"
Power Mac G4/800, 1Gb RAM, 80Gb HDD, Superdrive, GeForce 4MX, Gateway 21" CRT, Apple Pro Speakers, iSub - Running Mac OS X Server 10.2
iBook 500, 192MbRAM - Running Mac OS X 10.2
iPod 5Gb
     
raia
Junior Member
Join Date: Jun 2000
Location: Lodi, NJ, USA
Status: Offline
Reply With Quote
Oct 24, 2001, 05:34 PM
 
Florida Institute of Technology (fit.edu) made us use Ada as well.

believe that was part of the reason I left CS for IT.
--
raia
     
iJed  (op)
Dedicated MacNNer
Join Date: May 2001
Location: Edinburgh, UK
Status: Offline
Reply With Quote
Oct 25, 2001, 10:52 AM
 
From http://gcc.gnu.org

"October 2, 2001
Ada Core Technologies, Inc, has contributed its GNAT Ada 95 front end and associated tools. The GNAT compiler fully implements the Ada language as defined by the ISO/IEC 8652 standard."

and

"The next major release, GCC 3.1, will also include an Ada front end."

Hope Apple updates to GCC 3.1 instead of remaining in 2.95.2.

[ 10-25-2001: Message edited by: iJed ]
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 11:35 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,