Page 1 of 2
PASCAl or C
Posted: Mon Mar 28, 2005 12:00 am
by trey_monty
I recently got a PASCAL IDE and I alredy have a C compiler so is PASCAL or C best in OS dv? Also should I use my IDE from bloodeshed software or Turbo PASCAL 6?
Also for any reason you have an idea you dont want to put on here or for any other reason you can email me at
[email protected]
Thanks!
Re: PASCAl or C
Posted: Mon Mar 28, 2005 12:00 am
by Legend
Both are able to be used for os development.
However, most tutorials and examples are in C, so should for sure be able to read C code half-way decent!

Re: PASCAl or C
Posted: Tue Mar 29, 2005 12:00 am
by [AlAdDiN]
C was developped to code unix systems, it is more adapted to osdev than pascal, but if you are not planing to beat windows you can use pascal to develop ur personnal OS

Re: PASCAl or C
Posted: Tue Mar 29, 2005 12:00 am
by Legend
Yes, unsafe pointer stuff is harder with pascal, but that is sometimes necessary (or making things easier) for os development as I have seen it, although not nice.
Re: PASCAl or C
Posted: Tue Mar 29, 2005 12:00 am
by trey_monty
Well at the moment Im learning both so if I by some miracle get good is there any way I can mix the two languges? Also I hear you guys always talking about ASM what is it and do I have to learn a third launguge?
Thanks
Trey
Re: PASCAl or C
Posted: Tue Mar 29, 2005 12:00 am
by DruG5t0r3
You simply can't code an OS without knowing ASM. It's the CPU level code. You can't go any lower than that....than maybe....Hexadecimal "code" or even worse...binary

Re: PASCAl or C
Posted: Tue Mar 29, 2005 12:00 am
by Legend
You'll for sure have to code some special instructions for the cpu in assembler, with C or Pascal, so you'll need to understand it at least a bit - ofc understanding it more helps when something goes wrong!

Re: PASCAl or C
Posted: Tue Mar 29, 2005 12:00 am
by trey_monty
So now I have to learn assembeler. Well can I code the whole os in assembeler? I think I will stick to PASCAL despite all the critisizm I've heard about it. Also if anyone knows a good PASCAL compiler that would be nice.
Thanks
Re: PASCAl or C
Posted: Tue Mar 29, 2005 12:00 am
by Legend
Yes, you can code an OS completely in assembler - you just need to do everything yourself everytime unless you are able to somehow create some macros if that is possible - but then you are basically reinventing a high level language.
And you don't have to learn ALL of assembly, as there are a lot of things that you don't need urgently when you use pascal for most things.
Re: PASCAl or C
Posted: Wed Mar 30, 2005 12:00 am
by [AlAdDiN]
writing a whole OS in asm is possible but it's a very bad idea, coz it makes code maintaining herder, also, if you code your OS in assembly it will not be portable, coz assembly is arch. dependent
the best choice for OSdev IMVHO is C plus some piece of code in asm (the arch. dependent part only)
Re: PASCAl or C
Posted: Wed Mar 30, 2005 12:00 am
by trey_monty
I still thinkI will stick to PASCAL. Also DOES ANYONE Know of a good pascal compiler? The only reason I dont like C/C++ is because I can never get the compilers to work. The only compiler Ive ever gotten to work is visual basic.
Re: PASCAl or C
Posted: Wed Mar 30, 2005 12:00 am
by Legend
Why don't you try and ask how to get the compiler (I guess under Windows) to run when you have not yet run any pascal compiler either?!?
Re: PASCAl or C
Posted: Wed Mar 30, 2005 12:00 am
by DruG5t0r3
ROFL...
"the Tutorial on how to program a OS in Visual Basic"
Makes me wonder if windows was actually programmed in that language

Re: PASCAl or C
Posted: Wed Mar 30, 2005 12:00 am
by DruG5t0r3
....btw, if you want to code an OS, I strongly suggest to use a *nix based system to dev an OS....much more flexible....
Re: PASCAl or C
Posted: Wed Mar 30, 2005 12:00 am
by trey_monty
what is a .nix based system? Also ive tried to run the IDE one but it did not work even when I copy them write out of a book!