[fpc-devel]Porting FPC to another OS

Marco van de Voort marcov at stack.nl
Mon Apr 22 15:13:53 CEST 2002


> > Free Pascal does not use register GS at all 
> > in the assember that it generates, 
> 
> I don't think it's in the Free Pascal code, since if
> I remember it correctly, it switches to another code &
> data selector as soon as GO32V2 switches to FPC-code.
> I can find this out by setting an breakpoint in the startup-code
> of FPC though. This is in system.pp right?

No, there runs asm code belonging to the FPC project before that. See the
rtl/platform/i386/ subdir.
 
> > If that is the case, then this comes from the startup code,
> > which source you can get from DJGPP sources.
> > Or maybe its in the cwsdpmi.exe server,
> > unless RDOS does provide its own DPMI server.
> 
> It's not in cwsdpmi since RDOS has it's own DPMI server.

If the IDE has it, but the others don't, it could also be in the implementation
of the libraries that the IDE includes (libc/ncurses/libgdb)

Since the target is a processor vector, I'd expect libgdb to do that.





More information about the fpc-devel mailing list