News for hackers. Stuff that matters.
Re:Clang vs. Clang by eschneider on Sunday August 04, 2024 @02:34PM (#41155415)
There's nothing terribly difficult to writing specific routines in asm. It's kinda fun, actually. Assembly _in the large_ is hard, just because you need to be next-level organized to keep things from being a mess.
Re:Clang vs. Clang by rbanffy on Monday August 05, 2024 @05:15AM (#41159417)
I find it rather easy as long as you don’t have to interact with the OS. That’s where it becomes messy, with inflexible data structures and convoluted arguments in ABIs designed to be used from higher level languages.

If you are doing really low level stuff, sometimes it’s worth rolling out your own little RTOS with just the bits and pieces you need.

Not that long ago, I realised most 8-bit (and MS-DOS) computer games had their own RTOS woven into the game code, with multi-tasking, hardware management, IO, and so on.

Re:Clang vs. Clang by eschneider on Monday August 05, 2024 @09:51AM (#41161385)
Yeah...Old 8-bit computers didn't exactly have any OS services. :)
Re:Clang vs. Clang by rbanffy on Monday August 05, 2024 @10:06AM (#41161486)
Some very minimal things such as reading or writing to disk or files, reading the keyboard, or other very simple activities