Looking for a Turbo Pascal Compiler for X

Jump to First Reply
Posted:
in Mac Software edited January 2014
Does anyone have a compiler for this dusty old language? I have a text based program I would like to recompile for OS X. It can run in the command line as far as I'm concerned, but I'd like to have access to it again.



Cheers...

Comments

  • Reply 1 of 9
    amorphamorph Posts: 7,112member
    Turbo Pascal?!



    Ummm, the closest I can think of would be CodeWarrior, which still supports its special kind of Object Pascal.



    I can't promise that you won't have to do some recoding, though.
     0Likes 0Dislikes 0Informatives
  • Reply 2 of 9
    bungebunge Posts: 7,329member
    I was hoping for some command line magic, since it's a simple text based program. Anyone know of anything BSD related?
     0Likes 0Dislikes 0Informatives
  • Reply 3 of 9
    wmfwmf Posts: 1,164member
    You might be able to convert it to C. p2c?
     0Likes 0Dislikes 0Informatives
  • Reply 4 of 9
    bungebunge Posts: 7,329member
    Quote:

    Originally posted by wmf

    You might be able to convert it to C. p2c?



    What's p2c? From what I remember in college, C & Turbo Pascal were virtually identical, just some syntactic changes. If there's an easy way to make the switch I'll do it.
     0Likes 0Dislikes 0Informatives
  • Reply 5 of 9
    Quote:

    Originally posted by bunge

    What's p2c?



    p2c is a Pascal to C translator
     0Likes 0Dislikes 0Informatives
  • Reply 6 of 9
    resres Posts: 711member
    You should check out the GNU Pascal Compiler for Mac OS X http://www.microbizz.nl/gpc.html



    It is still in prerelease but it might do the trick.
     0Likes 0Dislikes 0Informatives
  • Reply 7 of 9
    bungebunge Posts: 7,329member
    Thanks y'all.



    I did try p2c, but it runs in classic and gave me about a 95% error rate. Strange.



    I'm downloading the GNU Pascal compiler right now and will let you all know how it goes. Any advice on how it functions? I've never had to compile my own command line programs for X. I always had to use DOS or Windows in school.
     0Likes 0Dislikes 0Informatives
  • Reply 8 of 9
    xoolxool Posts: 2,460member
    Classic? Or how about running an old copy of Pascal 3 for PC in a free dos emulator?
     0Likes 0Dislikes 0Informatives
  • Reply 9 of 9
    bungebunge Posts: 7,329member
    Quote:

    Originally posted by Xool

    Classic? Or how about running an old copy of Pascal 3 for PC in a free dos emulator?



    Ah, my hope is to get this running on Mac OS X, even if it's on the command line. Would Pascal 3 do that? I don't really mind the fact that a program is in Classic since I sometimes, when push comes to shove, boot my machine in Classic. But, it didn't work anyway.



    I did download the beta of that Pascal compiler and installed it. I imagine this is the way to go. Unfortunately it's giving me some errors. They have a FAQ and I believe a forum, so I'll start to enquire over there.



    Unless someone else over here has a magic bullet.
     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.