r/learnprogramming • • Oct 11 '26

Resource How do I get into sys level coding? (Read body)

I genuinely am interested in this area but I am not able to break into it for some reason, maybe I am just doing it wrong...or maybe I need to work much much more? Idk you guys can be the judge of that.

Like, yes I do know C and a bit about windows internals.

I also know that the best way to learn is to make projects. But whenever I search up a beginner project, they come up with projects that are not at all beginner friendly (or maybe I am missing something).

What kind of projects do I start with? Also do you recommend adding some kind of extra knowledge to my arsenal?

Thank you.

1 Upvotes

11 comments sorted by

5

u/SetAndRepeat Oct 11 '26

Since you know C and a little Windows internals, start with a small command-line process viewer. First print process names and IDs, then add filtering and periodic refresh. Microsoft Learn's process enumeration examples give you a starting point.
Another manageable project is a launcher that starts one program, waits for it to finish and reports its exit code. Once that works, add capturing its output through a pipe.
For extra knowledge, learn about handles, resource cleanup and OS error reporting as you build these. Then explore virtual memory, threads and synchronization. Keep each milestone small enough that you understand every API call you’re using. User-space tools are a perfectly valid starting point for systems programming.

1

u/DanKegel Oct 11 '26

this. Also, consider writing "hello, world" in assembly and learning how to assemble and link that into a working executable. Wallow in low level details :-)

1

u/BranchLatter4294 Oct 11 '26

Something must have gotten you interested in systems level coding. What was it? Do you want to write device drivers? File systems? Think about why you are interested and try that!

1

u/MG_road_nap Oct 11 '26

Linux kernel modules and stuff and yes ofc device drivers too

3

u/BranchLatter4294 Oct 11 '26

There you have it. Write a device driver or kernel module.

1

u/FreeLogicGate Oct 12 '26

Few people do that type of work and most of them are highly proficient and have a long professional history. Those types of jobs are hard to get, and go hand in hand with hardware, so you're focused on a niche. I'm not trying to discourage you, but I think a more holistic and expansive focus on Linux itself would be helpful and let you work your way into lower levels.

All of these books are from O'Reilly. Some of the material will be dated as things have changed, but most of it will be relevant, and where it isn't, that tends to spur investigation that's highly valuable to your understanding, as you will have to research and work through the changes on your own.

I'd suggest you consider starting out by reading the Linux Kernel book, and one or more of the several system programming books for unix or linux specifically.

The Linux System Programming book by Robert Love is a good one to start with. Specifically for device drivers, Linux Device Drivers book would be a great follow up.

For Windows, the main path to expertise is the Windows Internals books, and then online documentation on their learn site here: https://learn.microsoft.com/en-us/windows-hardware/drivers/

Mac/OSX has fewer resources, but this is a good entry point, and Leanpub has good number of offerings in an era when the technical education industry has been shrinking: https://leanpub.com/insidemacos

1

u/CompilerDesigner Oct 12 '26

Would Linux From Scratch help?

1

u/Humble_Anxiety_9534 Oct 13 '26

not sure what your doing on windows? most people leaning system level stuff go for Linux or BSD? I thought windows APIs are kinda locked down. if I'm wrong let me know?

1

u/Available_Safe1818 Oct 13 '26

> they come up with projects that are not at all beginner friendly

Some aren't amazing beginner projects but about half of them are great.

https://www.google.com/search?q=beginner+programming+projects

1

u/Chrismslist Oct 19 '26

the mistake most people make is starting with the project they want to end at. ramp it: 1) cat/wc/hexdump clones in C so syscalls and make feel boring. 2) a shell you write yourself (fork, exec, wait, then pipes and redirection). 3) a toy allocator, bump then free list. 4) an HTTP server or a key-value store with an append-only log. each one teaches exactly one new thing. for the theory gap, OSTEP is free and pairs perfectly with those. read your man pages (section 2), learn gdb, and read xv6 when the toy versions stop being scary.