I did some work on updating gpc to newer gcc versions. You can
find it at GitHub:
https://github.com/hebisch/gpc
This is experimental work. 4.2 and 4.3 ports (on "master" Git branch)
are basically in "works for my purpose" state: on my machine compiler
builds and passes test suite with small (but nonzero) number of
failures. On 4.5.1 there is initial port to gcc-4.[45] -- this
one is broken from user point of view and may be of some use
only for people who want to seriously work on the compiler.
Note that this is _not_ a release. There are relatively easy to
fix but non working things (in particular some features of Makefiles
are broken). Testing was limited to running testsute just for
one configuration. I estimate that fixing easily fixable stuff
and polishing things would take me about a week -- unfortunately
I am busy with other things. So I decided to make the code
available "as is". If there will be bug reports, I will look
at them and there is reasonable chance that I will fix them.
But otherwise I do not plan to work on gpc in near future.
If you want to try the code note that there are changes to build
process, look at toplevel README file.
--
Waldek Hebisch
hebisch(a)math.uni.wroc.pl
Hello.
I've object Pascal source codes I would like to translate in Ada.
Though newP2Ada translator does good job for standard Pascal, it isn't object aware.
Thus I've created objP2Ada, a new branch, which can parse object Pascal syntax.
http://sourceforge.net/projects/p2ada
But some nice features work partially as the parser has some limitations.
What about to produce Ada code with modified gpc?
Is there some interested people in helping gpc modification?
I've got gpc source codes for Mac from http://www.microbizz.nl/gpc.html.
Thanks to perfect building script from Adriaan, I was able to build completely gpc on Mac OS X 10.6.
I've some ideas for translation of Pascal structures from my experience with objP2Ada.
What would be the next steps with gpc?
Regards, Pascal.
http://blady.pagesperso-orange.fr