Page 1 of 1

Pascal OS Dev question

Posted: Fri Nov 07, 2003 5:37 pm
by Frki
Hello,
I am a Pascal programmer, and I want to write a small OS in Pascal. I have two questions to ask :

1) Is there any way to compile Turbo Pascal 7.0 code to .COM file format ?

2) Are there any web sites covering this topic ?

Best regards,
Frki

Re:Pascal OS Dev question

Posted: Sat Nov 08, 2003 4:35 am
by Tim
You might find better results with Free Pascal. It's effectively gcc and binutils with a Pascal front end. It's compatible with Turbo Pascal, or you can write your own libraries (which is necessary, and I don't believe possible with TP). And because it's built on top of binutils, you can do all the tricks (including linking to .COM) that the C guys do.

Re:Pascal OS Dev question

Posted: Sat Nov 08, 2003 6:17 pm
by Frki
I am currently working on a 16-bit OS, and the FreePascal compiles 32-bit code. That is a little problem, so I'll just stick to Turbo Pascal 7.0.

Anyway, thanks for reply ;)