On Wed, Apr 04, 2001 at 03:03:55PM +0100, Geoff Bagley wrote:
Can someone please clarify the "parentage" of the Pascals (plural) available under Linux. There seem to be two distinct ones. There is gpc, the subject of this list, and a seemingly distinct route via p2c and the gcc "C" compiler.
- p2c is just a kind of filter. You process your pascal sources through p2c and get some C files which you can process with gcc. - gpc is a Pascal compiler. It is based on the top of gcc, a C compiler, but you do not see anything of C.
Am I confused ? Are they really separate, and why (if true) are there two rival Pascals. How do they differ ? Are they both Gnu ? I would imagine that the adherents of this list prefer gpc :) Which of them is the easiest to provide with a TP7.0 style Graph Unit ?
GPC is the GnuPascalCompiler. If you want to use Pascal just use this one :-)
Try this out:
test.pas: ------------------- program hello; begin writeln('hello geoff bagley') end. -------------------
process this source with gpc test.pas -o myprog and run myprog afterwards.
Eike