838
you are viewing a single comment's thread
view the rest of the comments
[-] chalk46@kbin.social 4 points 2 years ago

Who the hell writes stuff like this in asm, honestly? Hasn't C been around since like the 70s

[-] theamigan@lemmy.dynatron.me 31 points 2 years ago

"Who the hell" writes an OS in assembler in the 80s? Uh, some of the utilities are in C, but compilers were slow and generated slow code back then, and it was quite noticable on a slow machine. When every byte of memory counts, you often need to hand-optimize.

[-] billgamesh@lemmy.ml 7 points 2 years ago

My DOS computer from the 90s is sluggish with some of the more complex hand-written assembly things. C and UNIX were for powerful multi-user uses.

Roller Coaster Tycoon was written in assembly for optimization too.

[-] theamigan@lemmy.dynatron.me 2 points 2 years ago

The Amiga's OS was written in 68k asm and BCPL (C's grandfather) for the kernel, and C was used for the utilities and GUI. But this was considered quite ahead of its time for a single user micro.

[-] Buddahriffic@lemmy.world 5 points 2 years ago

Even today some parts need to be written in assembly, like context switches.

[-] theamigan@lemmy.dynatron.me 2 points 2 years ago

Most critical sections should be.

[-] CookieOfFortune@lemmy.world 5 points 2 years ago

Yeah but the compilers weren’t that good at optimization back then.

this post was submitted on 26 Apr 2024
838 points (100.0% liked)

Open Source

41681 readers
45 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 6 years ago
MODERATORS