Design an OS with FreePascal?
Design an OS with FreePascal?
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?
- Pype.Clicker
- 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?
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.
Re:Design an OS with FreePascal?
Didnt get it...I just asked ,if i convert Pascal top ASM with the tool thats included,will it work?
- Pype.Clicker
- 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?
... and i replied that it will depend on how much 'library calls' that ASM code does.
Re:Design an OS with FreePascal?
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.
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.