Has anyone built the Cygwin or Mingw version of GPC based on the latest GCC 2.95?
Does anyone plan to do this?
If not, I will have a go myself, but this might be a big effort as I have never built GCC or GPC before. If anyone can offer pointers I would be most gratefull. If successfull, I would then be in a position to offer my services in helping with further development of the compiler. Something I would be interested in would be recoding GPC in Pascal (I am sure this would make it easier for more people to contribute their help) - would this be feasible, or does GPC *have* to be coded in C for some reason?
Mark.
-- Mark Taylor, Department of Corporate Information & Computing Services, Extension 21145. (0114) 222 1145 http://www.shef.ac.uk/misc/personal/ad1mt
The opinions expressed in this email are mine and not those of the University of Sheffield.
On 8 Mar 00, at 9:58, Mark Taylor wrote:
Has anyone built the Cygwin or Mingw version of GPC based on the latest GCC 2.95?
Does anyone plan to do this?
I have built a Cygwin compiler (which is also able to produce Mingw programs), for gcc 2.95.2. You can download it from: ftp://agnes.dida.physik.uni-essen.de/home/chief/
If not, I will have a go myself, but this might be a big effort as I have never built GCC or GPC before. If anyone can offer pointers I would be most gratefull.
It is relatively straightforward to build a Cygwin compiler, as long as you have the full and latest Cygwin distribution. I am due to write some notes for building GPC on Cygwin, but I don't have the time yet. If you can understand bash scripts, I can send you the (commented) bash script that I use to automate all the steps. You should be able to work from that.
If successfull, I would then be in a position to offer my services in helping with further development of the compiler. Something I would be interested in would be recoding GPC in Pascal (I am sure this would make it easier for more people to contribute their help) - would this be feasible, or does GPC *have* to be coded in C for some reason?
Yes. AFAIK all GNU compilers *have* to be coded in C. Large parts of the GPC runtime library are of course coded in Pascal.
Best regards, The Chief ----- Dr Abimbola A Olowofoyeku (The African Chief) Email: African_Chief@bigfoot.com Author of Chief's Installer Pro v5.22 for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm
8-Mar-00 12:22 you wrote:
On 8 Mar 00, at 9:58, Mark Taylor wrote:
If successfull, I would then be in a position to offer my services in helping with further development of the compiler. Something I would be interested in would be recoding GPC in Pascal (I am sure this would make it easier for more people to contribute their help) - would this be feasible, or does GPC *have* to be coded in C for some reason?
Yes. AFAIK all GNU compilers *have* to be coded in C. Large parts of the GPC runtime library are of course coded in Pascal.
This is not true. GNAT (GNU-NYU Ada Translator) is coded in Ada. This is disaster: if you want to bootstrap GNAT you need not only C compiler but also Ada compiler so insted of just plain compilation you are effectively forced to play tricks with cross-compilation and such in case of non-standard (for GNAT) platform :-/ GPC is not easy to compile as it is and recoding on Pascal will make sutiation MUCH worsier ...