[fpc-pascal] Re: build a compiler for GO32v2 under Windows 8 (or 7)

Philippe philippe at quarta.com.br
Wed Sep 18 18:48:11 CEST 2013


  

(first time I am using the mail list ... I may do it wrong!) 

I
have a quite big program (now with more than 200.000 lines), first build
with TP7. For example it accesses CGA memory through absolute address
...  

Years ago I moved to FPC. And it compiled ok under Windows 98
then under XP. 

Now with with a new PC running Windows 8 ... the
compiler bugs. It works fine with small program .... but not with one
which executable about 1.5 Mb large (which is my case, I did not checked
till which size it works!). 

My program should run in prompt command
window of any MS Windows version (compiling on XP machine, the
executable runs fine on MS Windows 8 machine) 

The bug may not be fixed
soon ... version of the compiler for DOS/GO32v2 is not maintained any
more. 

through bug tracker I have been told to build the compiler this
way (using i386-win32 source and compiler):

cd c:fpc2.6.2-src
set
PATH=c:fpc2.6.2bini386-win32;%PATH%
make clean crossall crossinstall
CPU_TARGET=i386 OS_TARGET=go32v2 BINUTILSPREFIX=
INSTALL_PREFIX=c:fpc2.6.2 FPMAKEOPT="-T 2" 

but this does not build the
fpc.exe 

it does build go32v2 units in the  FPC2.6.2UNITSGO32V2 

I
tried to compile the software for win32 (not GO32v2) ... but I got an
error on the absolute address syntaxe ... then I tried to use {$mode TP}
in the unit where is the absolute address ( TelaCGA : Telas absolute
$B800:0000;) ... but it looks like that {$mode ...} does not work as
expected. It should be for the current unit ... but ... but next units
does not compile any more ... may be because of related units
...

through bug tracker I got these informations which let me think
that the job is not simple as I expected:

 		I BELIEVE THAT THE
CROSS-COMPILER SHOULD NOT BE NECESSARY AND USING THE WIN32 COMPILER
DIRECTLY SHOULD BE A BETTER OPTION (even if running under 64-bit Windows
as long as I understand it correctly). Obviously, the RTL and packages
compiled for GO32v2 are necessary, but these may be installed from our
standard FPC release for GO32v2 (as long as using the same release of
the Windows compiler, of course), and SOME ADDITIONAL TRICKS MAY BE
NECESSARY (e.g. copying the DJGPP assembler and linker to the Win32
directory with the prefix expected by FPC), but otherwise it isn't that
difficult.

It´s quite easy to understand that it is not enough to find
out my way! 

where can I find documentation about the compiler and how
to build it?

I appreciate any help.

-- 

Philippe
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130918/4b352d01/attachment.html>


More information about the fpc-pascal mailing list