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