Design an OS with FreePascal?

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
embrance

Design an OS with FreePascal?

Post by embrance »

If im not mistaken(im using FPC)Free pascal has an option to export code to ASM(Nasm,tasm etc)SO can i code the OS and then export it to asm and work?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Design an OS with FreePascal?

Post by Pype.Clicker »

there are OS project in pascal (including FreePAscal, iirc), but having intermediary ASM source will not mean that sources will not depend on a heavy runtime environment.
embrance

Re:Design an OS with FreePascal?

Post by embrance »

Didnt get it...I just asked ,if i convert Pascal top ASM with the tool thats included,will it work?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Design an OS with FreePascal?

Post by Pype.Clicker »

... and i replied that it will depend on how much 'library calls' that ASM code does.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Design an OS with FreePascal?

Post by Solar »

I don't know FreePascal, but chances are excellent that the ASM code you are generating that way is still dependent on a hosted environment - i.e., user space code.

For an Operating System kernel, you need freestanding code, that does not call upon a (non-existent) operating system to open files, print text etc.
Every good solution is obvious once you've found it.
Post Reply