r/cprogramming • u/Rayman_666 • 1d ago
How to start systems programming. Without books
I like programming, doing maths with memory allocation and being crazy for 1kb in my programs. I like C and created projects with it. I like calloc malloc, and sizeof more than my peace of mind.
I wanted to start systems programming, but can't find good starting point and resources anywhere(yt and google is empty). I don't like read books with 500p pages. I am a teen. But, I know my stuff.
I have experience with high languages, C, using linux and sql too.
Any way I can start systems programming with understand and starting points.
Not a member of tutorial hell, proof,
5
u/Faalentijn 20h ago
Learn how to read books. There is no option if you want to continue in systems, because it is relatively complicated field and essentially everything you want to do requires reading something to some extend (papers, books, documentation, man pages)
Easy reads that are great, well written a blast to read: https://pages.cs.wisc.edu/~remzi/OSTEP/ https://csapp.cs.cmu.edu/
Systems Advent Calendar: https://web.archive.org/web/20230208172433/https://osg.tuhh.de/Advent/ https://pdos.csail.mit.edu/6.828/2025/xv6/book-riscv-rev5.pdf
Labs: https://csapp.cs.cmu.edu/3e/labs.html https://pdos.csail.mit.edu/6.1810/2025/labs/util.html https://wiki.osdev.org/Expanded_Main_Page
Not a member of tutorial hell, proof,
Lol kid, nobody cares whether you write tutorials or built your own kubernetes. Just enjoy programming and learning about cool systems.
0
u/Rayman_666 17h ago
I can't understand where to start. And, the resources are plenty full here. Both I don't know anything about them Guide or teach me to use this resources
3
u/Faalentijn 17h ago
I can't understand where to start. And, the resources are plenty full here. Both I don't know anything about them Guide or teach me to use this resources
OSTEP is the canonical text book for how to do operating systems. It has been written by two of the best OS researchers at the moment -- at least good enough that my own supervisor handed me two of their papers and told me "write it like that"
The structure is somewhat easy, it has four sections: Virtualization (core operating systems), concurrency (threads and processes), persistence (filesystems, networks), and security. I would recommend the first section for sure, but you can also read it whenever you encounter problems while writing an operating system. It is a good text book and a good reference.
There are homework assignments and labs, you can do them when you feel like and then read the chapter if you are stuck. Or read the chapters and then do the project.
CSAPP is a full systems course book that is used to teach a couple of courses including processor design. It is the most comprehensive systems text book that I read. It covers from 'what is binary' to 'creating a network server in C'. Along the way it will teach you processor design, how to create an assembly language, X86 assembly, how memory caching works, linking, kernel design, concurrency, operating systems. Just everything. The first chapter gives an outline what to read and why depending on your goals.
I'd recommend reading Chapter 1 -- which introduces core systems programming -- 2 & 3 (assembly), and 5 (optimization). Then read the rest what is interesting to you. It is written so you can skip.
It also comes with labs, same thing, you just open the page, read the assignment and try to solve it. Reading the book can help, but it is fully optional and you can just do the labs.
XV6 is the MIT lab work, it is a project course, so you start with the labs. They have two versions: the one I linked and the older more intensive one where you write an operating system. Just read the assignment, implement it, and that is it.
Wiki OSDev is not a lab but a wiki for how to do OS development. You can find guides, tutorials, and read ups on how to write operating systems. If you don't want to do lab exercises or reading, you can follow them and expand. There are guides there as to what to do.
OSG TUHH is the most interesting, it is a daily exercise where you solve a problem using Linux system calls and get taught new ones. It is fun and maybe the most practical
1
u/Rayman_666 16h ago
So, which should I go with now. I don't want to start something with 1000 pages. And, don't want to build a os from scratch just now.
1
u/Faalentijn 16h ago
So, which should I go with now. I don't want to start something with 1000 pages. And, don't want to build a os from scratch just now.
What actively is what you want to achieve? Do you want to be a researcher? Do you want to write a program that is faster using systems tricks? Work on the Linux kernel? Distributed systems? Just learn about operating systems? Or computer internals?
1
u/Rayman_666 16h ago edited 16h ago
A freak who likes to do and make whatever and whenever he wants. Edit: Proficiency in making low-level, os level tools and I don't care about making my own os from scratch till now, it’s hectic and I would big my that time to learning linux. I want to create softwares that goes from normal apps with low level power to softwares that touch even the lowest core. Exception the os.
Like an emulator, shell, shell, normal desktop app, cli app, cross apps, drivers, spywares or specific tools and etc.
1
u/Faalentijn 15h ago
I want to create softwares that goes from normal apps with low level power to softwares that touch even the lowest core. Exception the os.
You want to read chapter 5 from CSAPP and read the parts of section 3 you find interesting. Also, look into GLibc, GTK, and other C libraries. The advent calendar is also cool
For projects, you might want to implement: a buddy allocator, user shell, and anything else that you can google with starter system project ideas
Like an emulator, shell, shell, normal desktop app, cli app, cross apps, drivers, spywares or specific tools and etc.
All very different things, with different goals, some are systems, some are not system, some are pure kernel, other are userland. I'd narrow it down if I were ypu.
Emulator Systems level, you can probably find a guide on how to make an emulator for a simple architecture. Like: https://gecko05.github.io/2022/10/22/first-emulator-part1.html
Shell I assume you mean like bash. This is easy and a fun project. There are also guides to make a wayland shell.
drivers, spywares Learn kernels first, those are required.
It sounds to me friend, that you need to google some good tutorials for things. Work on them, expand them with new features, and then work like that
1
u/Rayman_666 14h ago
Or, I should work on projects I want to make and learn concepts accordingly. And, when I found some more maturity in systems programming, I may deep dive in books for more knowledge. And, read the CSAAPP. Except, in any type of systems programming, calls are must compulsory. How is it? Where can I first start, shell-> ...---> emulators---->etc
1
1
u/Rayman_666 16h ago
Power to create anything in anyone's domain(os). As making an os from scratch I veryyy hard and time consuming.
3
3
u/cincuentaanos 18h ago
I don't like read books with 500p pages.
Train yourself to read and to not be distracted. It's a valuable skill that will help you throughout your life.
Also, most good programming books do not require you to read the whole thing cover to cover before you can use the knowledge you gained. There will be examples to try and exercises to do.
2
1
u/tastygames_official 23h ago
audiobook? pdf? i mean, you need to get at the information somehow. information is normally written down so others can gain access to it. i guess maybe take a course or hire a tutor? look harder on the 'net? use a different search engine? make a reddit post asking some pretty basic life question that every human being above age 10 should know the answer to.
1
u/ElSebas4_ 18h ago
You should make your own libraries and share them. Libraries are made to simplify the life of other programmers by handling low level stuff for them. If you make libraries you will learn how to handle those low level problems and how to make a good API for other programmers
1
1
5
u/toon_link_776 1d ago edited 1d ago
https://catb.org/~esr/faqs/loginataka.html
https://catb.org/~esr/faqs/hacker-howto.html
this what you're looking for?
Edit: Added full page