News for hackers. Stuff that matters.
Re:Itsy-OS: A simple 380 byte OS kernel by DrJokepu on Wednesday March 30, 2011 @07:25PM (#2389687)
Really cool experiment, although a bit difficult to extend as there are only 132 bytes remaining for loading anything else from the disk, which is not much (the boot sector is normally 512 bytes long on x86).
Re:Itsy-OS: A simple 380 byte OS kernel by wtallis on Thursday March 31, 2011 @12:10AM (#2390393)
The demoscene notwithstanding, anybody counting bytes like this will probably be putting their OS in flash/ROM, not on a hard drive.
Re:Itsy-OS: A simple 380 byte OS kernel by tomjen3 on Thursday March 31, 2011 @04:14AM (#2390781)
Actually all you would have to do would be to load the next n sectors and jump to the beginning.

Thats easily done in 132 bytes.

Re:Itsy-OS: A simple 380 byte OS kernel by sgt on Thursday March 31, 2011 @02:57AM (#2390652)
Correct me if I am wrong. Isn't it likely that you would create a quick bootloader in the 512 byte long boot-sector, and then load this Itsy-OS from storage (e.g. flash, ROM, etc). Ofcourse it would require the bootloader to be written...
Re:Itsy-OS: A simple 380 byte OS kernel by DrJokepu on Thursday March 31, 2011 @05:47AM (#2390916)
Normally you would be right but I think since we're talking about kernel code golf here, it's only fair to consider the bootloader (if there's any) as part of the kernel.
Re:Itsy-OS: A simple 380 byte OS kernel by simcop2387 on Thursday March 31, 2011 @12:51AM (#2390447)
It's even worse if you use the "standard" DOS partitioning system, only 440 bytes are available. (446 if you get fancy)
Re:Itsy-OS: A simple 380 byte OS kernel by _b8r0 on Thursday March 31, 2011 @04:28AM (#2390795)
You could pack this into a kernel loaded from Grub and pack a fair amount more in.
Re:Itsy-OS: A simple 380 byte OS kernel by chrisjsmith on Thursday March 31, 2011 @04:35AM (#2390808)
I really like this. It's a good bootstrap environment for a kernel or scripting language of sorts. You could just about squeeze something to pull a block or two off disk with the BIOS on the end and kick off something more complicated.

Will have to dig out bochs tonight :)