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
gregv
Posts: 1
Joined: Sun Dec 12, 2004 12:00 am

Pascal

Post by gregv »

Hi, im thinking about starting an operating system. I was thinking I should do it in Pascal... Any pointers/code examples :) you can think of?
[AlAdDiN]
Member
Member
Posts: 107
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re: Pascal

Post by [AlAdDiN] »

hmm
pascal is really a simple programing laguage, i used it to learn programing, but i really don't think u can write a "GOOD" Os using it, personally i prefer C.
anyway, it is still possible to develop ur OS in pascal (under linux i donno about woindows),
just use GPC (GCC variant for pascal), to output flat binary object files, then u can link them to construct ur kernel


to download GPC go here http://www.gnu-pascal.de/binary/


more information here http://directory.fsf.org/GNU/GNUPascal.html

also use google u can get a lot o help with ;)
-----------------------
There are 10 types of people in this world... those that understand binary, and those that don't.
krillzip
Posts: 11
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re: Pascal

Post by krillzip »

The first Mac OS classic was made in Pascal.
[AlAdDiN]
Member
Member
Posts: 107
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re: Pascal

Post by [AlAdDiN] »

krillzip wrote:The first Mac OS classic was made in Pascal.
yeah and the last one is a BSD ;)
-----------------------
There are 10 types of people in this world... those that understand binary, and those that don't.
dr_evil
Member
Member
Posts: 34
Joined: Mon Dec 20, 2004 12:00 am

Re: Pascal

Post by dr_evil »

there is no problem with developing a os with pascal. i use freepascal for my os.

c is closer to the system-level, but as soon you made the first steps, you'll be glad to use "var param:array of integer" instead of creating a pointer-ghetto.

only one problem: first of all you have to download parts of the source-code of freepascal (rtl) and change it to your needs.

a good starting point is http://ybx.narod.ru/files/misc/cust_target.tar.bz2
Crazed123
Member
Member
Posts: 248
Joined: Thu Oct 21, 2004 11:00 pm

Re: Pascal

Post by Crazed123 »

I'm writing my OS in FPC.
Post Reply