[fpc-devel]Porting FPC to another OS
Leif Ekblad
leif at rdos.net
Mon Apr 22 17:11:15 CEST 2002
Pierre Muller:
> You should use v2prt0.as code
> start assembler label.
OK, thank you for that clarification. I just succeeded in
building a sysrdos unit, and making a rtl with a copy of
win32's rtl. However, there also where some locations
in the shared rtl-files that used win32 :(. However, I
think you did a pretty good job of separating OS code
anyway. I also had to change some other modules (import.pp
and export.pp) in the compiler to make it accept PE executables
for RDOS target. That is not really related to Win32, although
I've had much larger problems with this under other environments.
> >They behave differently. AS and LD faults on int 31
>
> Some unsupported RDOS DPMI 0x31 functions?
Worse than that. It protection-faults on the instruction itself.
I currently have no idea why. Unsupported functions are
signalled by a breakpoint in the kernel. Something gets
messed-up somehow.
> >for some reason. MAKE encounters a page-fault.
> >Unfortunately, some dos-extenders go beyond what
> >RDOS supports.
>
> But these programs should use the same loader as we do for go32v2 binaries...
>
> For make.exe,
> isn't it a test to check if page protection is supported by the DPMI server?
It could be. It looks like it's user code causing these problems. However,
if it's user-code, why doesn't it first stop on the FFFF3 reference?
> The fact is that 1.0.6 is almost ready so its too late for that one,
> after you have the choice of either submit your patches against 1.0.6 or to
> start looking at the new 1.1 compiler version.
> That version should allow easier adding of targets, but I mainly
> focused on fixing bugs in 1.0.X version and trying to enhance
> the text mode IDE.
OK, I'll do a complete port first. Then I'll need to adapt it to
1.0.6.
> BTW: do you know why the IDE don't work under RDOS,
> is this for both the go32v2 and the win32 versions?
On my computer (Windows ME), only the go32v2 ide works.
The win32 version doesn't support the mouse. The problem under
RDOS was that it couldn't find the .cfg file I think.
Leif
More information about the fpc-devel
mailing list