Hello Adriaan,
I put my modified version of gpcpp.c on line on my web site - as promised: http://perso.wanadoo.fr/blady/creations.html#gpcpp Sorry for the French texts.
Tell me if it helps you.
As you know I am a fervent supporter of Pascal Language, and I will modestly support your work to port GPC on Mac OS X as it is a lack. However some great works has been done for about more than one year about Ada language on Mac OS X see in the text.
I stop my work on GPC port as I fall in two problems: 1) the compiler refuse in some cases the last pass "Unable to generate reloads...", 2) the linker fails, I was told that Apple dynamic link processing is very different than Linux does that is for GNU GCC too. (see my web site http://perso.wanadoo.fr/blady/creations.html#portagegpc) Sorry for the French texts, a translator link may be found at home page.
I think both problems are linked about dynamic adresses management. And as Apple or FSF (as you want) won't meet the same process it should be impossible. But it was before revison gcc 3, maybe now...
If you have some contacts in Apple staff, you can ask them for that.
Greetings for 2003, Pascal Pignard. http://perso.wanadoo.fr/blady
Being an optimist, I am currently trying to build GPC for Darwin (Mac OS X) myself. I welcome the gpcpp.c changes.
Frank Heckenbach wrote:
I.e., we might choose to implement them for compatibility's sake. Then again, how far is GPC compatible to CW in other respects? Is it reasonable to claim (or strive for) compatibility at all?
I will be pleased to discuss CodeWarrior Pascal, it's EBNF is at the bottom of this message. My goals however, are rather pragmatic (unless somebody else has more ambitious plans).
(1) Try to build GPC on Darwin (Mac OS X)
Done for Ada with gnat-osx
(2) Try to build the Hello program
Done for Ada with gnat-osx
(3) Try to build a sample GUI program (for Mac OS X "Carbon")
Done for Ada with gnat-osx
(4) Try to integrate GPC with Apple's "Project Builder"
Done for Ada with gnat-osx
(4) Try to port a large (300.000 lines) program to GPC
Done for Ada with gnat-osx
(5) Write a compatibilty-report for porting from CodeWarrior Pascal to GPC
Done for Ada with P2Ada
(6) Same for maintaining a common (conditionalized) source code for CodeWarrior Pascal and GPC (7) Filter out a handful of compiler features that would really assist GPC development on Mac OS X (and porting from CodeWarrior). On this list wil be UNIV parameters, I guess, but this is premature. (8) Either talk to Nick Kledzik (who maintains Apple's Pascal Interfaces) or maintain our own GPC Interfaces for Mac OS X (9) Setup a GPC compatibility website for Mac OS X
Done for Ada with gnat-osx
I am willing to spend time on this all, except for working in C on the compiler itself. Any help is welcome.
Best regards,
Adriaan van Os
Pascal wrote:
Hello Adriaan,
I put my modified version of gpcpp.c on line on my web site - as promised: http://perso.wanadoo.fr/blady/creations.html#gpcpp Sorry for the French texts.
Tell me if it helps you.
Thanks, I will test it soon.
As you know I am a fervent supporter of Pascal Language, and I will modestly support your work to port GPC on Mac OS X as it is a lack. However some great works has been done for about more than one year about Ada language on Mac OS X see in the text.
I stop my work on GPC port as I fall in two problems:
- the compiler refuse in some cases the last pass "Unable to generate
reloads...", 2) the linker fails, I was told that Apple dynamic link processing is very different than Linux does that is for GNU GCC too. (see my web site http://perso.wanadoo.fr/blady/creations.html#portagegpc) Sorry for the French texts, a translator link may be found at home page.
Well, it may reinvigorate your enthousiasm for Pascal to hear that I now have a GPC compiler (based on the GPC 20021128 alpha, FSF GCC-3.2.1 and some patches) that builds and runs on Mac OS X. So far, I have only tried out some of the /doc/gpc/demos programs, but they do (!) compile, link and run. More news to follow.
I think both problems are linked about dynamic adresses management.
That may have more influence on the C backend than on the Pascal frontend. Besides, the ADA port, proves that it can be done
And as Apple or FSF (as you want) won't meet the same process it should be impossible. But it was before revison gcc 3, maybe now... If you have some contacts in Apple staff, you can ask them for that.
It is Apple's stated policy that the FSF mainstream version of GCC and their own version will merge. Apple is putting resources behind it, although "we're not even sure what all of them [the compiler changes] are, because the existing compiler has many undocumented changes inherited from 10 years of NeXT and Apple hacking, and nobody knows what some of them are for." This information is from the README.APPLE file included with the Apple "GCC3-1151 Darwin" sources. With time, most of these changes will be reworked and integrated in mainline GCC.
Regards,
Adriaan van Os