PDA

View Full Version : Pascal for XCode?




pimentoLoaf
Mar 19, 2005, 09:55 PM
Is there something available?



bousozoku
Mar 19, 2005, 11:07 PM
I don't remember specifically.

You should be able to find a Pascal compiler available in source code from the Free Software Foundation website. If it's compatible with gcc, it should output code that will be PPC compatible.

There is a company that makes translators for Pascal, Modula-2, and Oberon that create Java source code.

pimentoLoaf
Mar 20, 2005, 09:09 AM
This is the parent organization:

http://www.freepascal.org/

And this is the info on the Mac version:

http://www.freepascal.org/fpcmac.html

~Shard~
Mar 20, 2005, 09:25 AM
Wow, Pascal, that takes me back about 10 years! Did a lot of cool programming with that back in the day...

pimentoLoaf
Mar 20, 2005, 09:39 AM
Here's the download:

http://www.us.freepascal.org/down2-macosx-powerpc.html

And you must implement the Integration package that's listed for it to work under XCode.

Am downloading now; will advise about installation later.

pimentoLoaf
Mar 20, 2005, 11:01 AM
Have downloaded the first; however, must read the ReadMe and follow through with download of the second:

http://www.surtec.com/~rj/Xcode-FreePascal/

pimentoLoaf
Mar 20, 2005, 11:16 AM
Command Line Version (no XCode):

When you install the compiler, the ReadMe instructions are somewhat wrong: it suggests that if you see "fpc: command not found" then you have to do something with Fink.

You could do a CD /usr/local/bin and then a ./fpc and things will work nicely. I wasn't aware that typing fpc alone, without the ./, would still work.

Anyone with command line experience understand why?