OS in Pascal ??

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
cipek
Member
Member
Posts: 43
Joined: Mon Oct 25, 2004 11:00 pm
Location: Poland

OS in Pascal ??

Post by cipek »

I got a question... (subject). Is it possible to write os in pascal? Wchich compilator i must use? Can i write Pascal OS in Borland Pascal ??

Thx.. Cipek :-)
__matt__
Posts: 15
Joined: Thu Feb 03, 2005 12:00 am
Location: Right behind you
Contact:

Re: OS in Pascal ??

Post by __matt__ »

I'm pretty sure you can write an OS in Pascal; it's probably been done (or at least attempted) before. Ask Google.

Compiler choice is partly determined by your development platform: if you're running Windows, then sure, try Borland's Turbo Pascal or a newer Delphi package. If you're running Linux, there's a GCC frontend for Pascal.

(opinion)
Pascal is probably the wrong language to write an OS in. It was designed as an educational tool, and tries to protect programmers from themselves; this can make OS development harder than it already is. C was designed for systems programming; it makes things like memory / pointer management simple. If you know Pascal but don't know C, I'd reccommend learning C. It's similar to Pascal, so it shouldn't take you long to figure it out, and it's somewhat more "powerful" than Pascal, because it doesn't try to hold your hand a bit like Pascal does.

Here's a paper you might want to read. It's probably a bit biased (the author was a co-designer of C!) but the arguments make sense.

http://www.lysator.liu.se/c/bwk-on-pascal.html
(/opinion)
Last edited by __matt__ on Thu Feb 03, 2005 12:00 am, edited 1 time in total.
cipek
Member
Member
Posts: 43
Joined: Mon Oct 25, 2004 11:00 pm
Location: Poland

Re: OS in Pascal ??

Post by cipek »

I've asked google :lol: but i don't found nothing about it.
I know a bit C :] and i think C is better. I think about OS in C but i know better Pascal. That's im asking about it :)
Post Reply