3 ms·
> To give you an idea how tight that is, 64KB (code in ROM) is just 12 paper pages (60 lines of 80 columns) of text To be fair, this is machine code, so it's w
by rvense 6y ago
> To give you an idea how tight that is, 64KB (code in ROM) is just 12 paper pages (60 lines of 80 columns) of text
To be fair, this is machine code, so it's what, 4-10 bytes for an instruction and two or three of these per line of high level code? So it's probably comparable to a few thousand "pages" of C code.
But it's still pretty amazing.
- witherk 6y agoThank you for contextualizing this I was really trying to think about fitting an operating system into 12 pages...
- labawi 6y agoI think it more like 2-4 bytes per instruction[1]. Information density of machine code can be surprisingly high. Of course, density can also be abysmal with current toolchains and practices. [1] https://en.wikipedia.org/wiki/Motorola_68000#Example_code https://en.wikipedia.org/wiki/Motorola_68000#Example_code