Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2004-01

Info about the compiler

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

James Mills
to Marco van de Voort
Marco van de Voort wrote
> Freepascal compiler can compile for 32 bits real mode?? Yes

I was just thinking about FPC being used to write a small kernel again, I know it's been talked about before in threads in the past but the whole process of doing it is very complicated and I was never able to do it.

Are there better examples or documentation of how it's done now ? Could someone perhaps explain how to do it ?

cheers
James

Marco van de Voort
to Raul Heras
I need to compile a EXE for Real Flat Mode without extender How to Make this?

I said it might work earlier, but I misread the REAL mode part.

It is not supported, so you are totally on your own. Probably you want to generate assembler files (.s) with the -a and some -A<assembler type> switches, and then filter and assemble that.

And then you need to create a substitute for the rtl, for whatever OS, Bios or firmware you are using.

FPC is a protected mode compiler, so there are no real mode docs or tutorials.

It's even pretty undocumented how to make a protected mode rtl. The global idea is to take the template (rtl/template or rtl/fakertl), and to start expanding it till it works. (all platform dependant, so up to you).

However I think it is easier to start with an existing rtl (like go32v2) and strip that down, so you get a template that is up to date.