[fpc-pascal] FPC in DOS environment

Daniël Mantione daniel.mantione at freepascal.org
Wed Jan 24 16:48:45 CET 2007



Op Wed, 24 Jan 2007, schreef Daniel Franzini:

> today (quite late) i've got myself some improvements...so far i was
> unable to even compile some parts od fpc within freedos (inside
> virtual pc)...the IDE that comes with fpc2.0.5 does not even start at
> all...now i can compile correctly all the packages needed to build the
> ide (as Pierre pointed)...the problem now is that make is crashing
> when i do
> 
> make clean all DEBUG=1 OPT=-gl

A real crash or does it abort with an error?
 
> my guess is that the DPMI support on FreeDOS is somehow incompatible
> with the standard cwsdpmi (is there any other DPMI server i can use in
> order to achieve 100% compatibility with go32v2?)...right now i'm
> making a try with the standard cwsdpmi (provided in the fpcbuild
> package)...i will post the results soon

I always used qdpmi (from QEMM). However, cwsdpmi is the most tested 
solution.

> now, i think i can perfom a few tests like you pointed with the ide
> compiled with debug suport...question: is the DEBUG=1 parameter for
> make to compile with debug support or to instruct the make to be
> verbose???

DEBUG=1 will pass the commandline option -gl to the compiler. So the 
command you use above is a bit double, but it shouldn't harm.

> it was a bunch of tricky to get it working correctly...seems that fpc
> and freedos are not quite good friends yet...fpc AND freedos relies on
> the same env var for completely different things....both of them have
> the CFGFILE var...to fpc it means the fpc.cfg standard configuration
> file....to freedos it means the standard config.sys-like file...the
> (temporary) solution was to unset the cfgfile to freedos and let fpc
> use it in his way then setting it again for freedos...is there a
> better solution in the sense of changing the makefile (or
> makefile.fpc) on the fpc side??

If necessary the Makefile can be changed to use a different variable.

Daniël

P.s. I think this discussion should be moved to fpc-devel.


More information about the fpc-pascal mailing list