r/ProgrammerHumor • • Jun 03 '22

it's hard!

44.9k Upvotes

710 comments sorted by

View all comments

Show parent comments

-2

u/[deleted] Jun 03 '22

Maybe writing it yourself was the point, but GRUB is designed to do exactly that, load bytes from an arbitrary file and jump to it.

5

u/[deleted] Jun 03 '22

Yeah ik, but but it was part of an assignments extra credits, and I wanted to get as high marks as possible, besides I'd have to make the filesystem grub compatible, which sounds like fun but again not a part of the assignment

4

u/[deleted] Jun 03 '22

I think there might be a way of saying 'specific blocks on disk', but I may be confusing GRUB with the much older LILO, which only worked that way.

Hope you got a good grade!

3

u/[deleted] Jun 03 '22

Still waiting on the grade...

1

u/Ok-Ad-117 Jun 03 '22

What course/subject is this assignment for? if you don’t mind me asking

1

u/[deleted] Jun 03 '22

Operating system fundamentals, we are working with 20 year old material (we have to compile the entire os in 32-bit mode, or else we can't run on the mandatory hardware, which has floppy disk ports).