PASCAl or C

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.
trey_monty
Member
Member
Posts: 44
Joined: Thu Mar 10, 2005 12:00 am

PASCAl or C

Post 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!
Last edited by trey_monty on Mon Mar 28, 2005 12:00 am, edited 1 time in total.
Legend
Member
Member
Posts: 195
Joined: Tue Nov 02, 2004 12:00 am
Contact:

Re: PASCAl or C

Post 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! ;)
*post*
[AlAdDiN]
Member
Member
Posts: 108
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re: PASCAl or C

Post 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 ;)
-----------------------
There are 10 types of people in this world... those that understand binary, and those that don't.
Legend
Member
Member
Posts: 195
Joined: Tue Nov 02, 2004 12:00 am
Contact:

Re: PASCAl or C

Post 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.
*post*
trey_monty
Member
Member
Posts: 44
Joined: Thu Mar 10, 2005 12:00 am

Re: PASCAl or C

Post 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
DruG5t0r3
Member
Member
Posts: 29
Joined: Thu Mar 24, 2005 12:00 am
Contact:

Re: PASCAl or C

Post 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 :)
<h2>-OSdev addict</h2>
Legend
Member
Member
Posts: 195
Joined: Tue Nov 02, 2004 12:00 am
Contact:

Re: PASCAl or C

Post 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! :P
*post*
trey_monty
Member
Member
Posts: 44
Joined: Thu Mar 10, 2005 12:00 am

Re: PASCAl or C

Post 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
Legend
Member
Member
Posts: 195
Joined: Tue Nov 02, 2004 12:00 am
Contact:

Re: PASCAl or C

Post 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.
*post*
[AlAdDiN]
Member
Member
Posts: 108
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re: PASCAl or C

Post 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)
-----------------------
There are 10 types of people in this world... those that understand binary, and those that don't.
trey_monty
Member
Member
Posts: 44
Joined: Thu Mar 10, 2005 12:00 am

Re: PASCAl or C

Post 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.
Legend
Member
Member
Posts: 195
Joined: Tue Nov 02, 2004 12:00 am
Contact:

Re: PASCAl or C

Post 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?!?
*post*
DruG5t0r3
Member
Member
Posts: 29
Joined: Thu Mar 24, 2005 12:00 am
Contact:

Re: PASCAl or C

Post 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 ;)
<h2>-OSdev addict</h2>
DruG5t0r3
Member
Member
Posts: 29
Joined: Thu Mar 24, 2005 12:00 am
Contact:

Re: PASCAl or C

Post 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....
<h2>-OSdev addict</h2>
trey_monty
Member
Member
Posts: 44
Joined: Thu Mar 10, 2005 12:00 am

Re: PASCAl or C

Post 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!
Last edited by trey_monty on Wed Mar 30, 2005 12:00 am, edited 1 time in total.
Post Reply