On Tue, 15 Apr 1997 14:45:40 +0200 Frank Heckenbach heckenb@mi.uni-erlangen.de wrote:
[..]
A minor "problem": If I compile a program with such a compiler switch with TP, TP complains about an "Invalid compiler directive". Is there a way (perhaps a simpler way than conditional defines) to supply the options so that gpc will recognize them and TP will ignore them?
I am writing a shell for GPC - "GPCC.PAS" (in Borland Pascal). All that it does is to parse the command line, parse the source file to see whether it is a unit/module or a program (and pass the necessary "-o" or "-c" switch accordingly, read a file called "GPCC.CFG", add any switches found in it to the list of parameters obtained from the command line, and then, run "GPC" with the whole list of parameters.
I have had to write a number of "Borland" functions and procedures for GPC to make this program compile and work okay under GPC as well. The program can now be compiled under BP or GPC and works equally well under both. These (with full source code) will be released as soon as I am finished with what I am doing, as part of my contribution to GPC. Is anybody interested in all this?
My current GPCC.CFG looks like this (lines beginning with a semi-colon are treated as comments and are ignored by GPCC);
; ---------------------------- GPCC.CFG begins -------------------------- ; full optimization; 486 optimized -O3 -m486
; strip the symbol table -s
; "make" units --automake="-O3 --automake"
; use extended syntax --extended-syntax
; pack (align) all records --pack-struct ; ---------------------- GPCC.CFG ends ---------------------------
I intend to make a number of template GPCC.CFG file (e.g., for EP, ISO, etc.) before releasing the stuff.
Best regards, The Chief Dr Abimbola A. Olowofoyeku (The African Chief, and the Great Elephant) Author of: Chief's Installer Pro v3.12 for Win16 and Win32. Homepage: http://ourworld.compuserve.com/homepages/African_Chief/ E-mail: laa12@cc.keele.ac.uk