Is this posible?
Is this posible?
Can you make a complete Kernel out of C?
and
Can you make a complete Boot Code out of C?
and
Can you make a complete Boot Code out of C?
Re:Is this posible?
With inline assembly? Probably not.
Without? No.
Even inline assembly would be pretty hard. Remember, the entire code MUST fit into 512 bytes. That 512 bytes has to switch from 16 to 32 bits, which means seperating and linking the two seperate parts. It must load floppy sectors (or hard drive etc.).
Most C programs start at ~1K and go up, so I'd gander at: Impossible.
There is NO way to make an OS without ASM.
Without? No.
Even inline assembly would be pretty hard. Remember, the entire code MUST fit into 512 bytes. That 512 bytes has to switch from 16 to 32 bits, which means seperating and linking the two seperate parts. It must load floppy sectors (or hard drive etc.).
Most C programs start at ~1K and go up, so I'd gander at: Impossible.
There is NO way to make an OS without ASM.
Re:Is this posible?
Hi,
So my conclusion: it's IMPOSSIBLE to write an OS without at least some (inline) assembly. (even it's booted using GRUB)
DennisCGc.
I doubt you can. You still need at least some inline assembly. like 'in' and 'out'. You still need the mov command, esp. for CR0,CR1, etc. Same for 'int','lidt',name it.HardEnough wrote: if u will use grub , i think u can
So my conclusion: it's IMPOSSIBLE to write an OS without at least some (inline) assembly. (even it's booted using GRUB)
DennisCGc.
Re:Is this posible?
Hi,
Why not just use the Linux kernel and device drivers (you wouldn't need C or assembly then - you could do the rest of the OS in PERL! ).
Cheers,
Brendan
How much inline assembly is in OSkit?HardEnough wrote:he can also use oskit
Why not just use the Linux kernel and device drivers (you wouldn't need C or assembly then - you could do the rest of the OS in PERL! ).
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Re:Is this posible?
>How much inline assembly is in OSkit?
>Why not just use the Linux kernel and device drivers (you wouldn't >need C or assembly then - you could do the rest of the OS in PERL! ).
Remember we are talking about the possibility. that's the point he can just use grub+oskit.
>Why not just use the Linux kernel and device drivers (you wouldn't >need C or assembly then - you could do the rest of the OS in PERL! ).
Remember we are talking about the possibility. that's the point he can just use grub+oskit.
Re:Is this posible?
Didn't say he couldn't, just that it would kind-of defeat the purpose of making one in the first place ;D