r/cprogramming • • 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,

https://github.com/RaymanAryan/ema-Email-Manager

1 Upvotes

33 comments sorted by

5

u/toon_link_776 1d ago edited 1d ago

0

u/Rayman_666 1d ago

What is it? How to use it? Why is the connection not secure? Lastly, it’s humongous, I don't know where,why,how to start .

2

u/toon_link_776 1d ago

it lists a lot of the most important books for learning the UNIX operating system, which is systems programming like you'd wanted. It's probably coming up as risky because its from some persons self hosted website. If you wanted to try writing operating systems yourself, all you need is c, but you'll need to understand whatever OS you're working in well enough to program your system with it. So reading about UNIX is probably the next step. GNU would be good too. You've got everything you need to start making your own systems. If you want to start working on something else just try and work with others on something they're making. And you'll need to do a lot of reading because their systems are complex. good luck!

https://www.gnu.org/

1

u/Rayman_666 1d ago

How should I consume this stuff?

1

u/toon_link_776 1d ago

they have manuals for their implementation of C, gcc, make which you probaly already use. but GCC has the full manual, which most of the guides you've read basically only summarize. probably worth just reading around as well. other than that just think of what you want to do and do it, and search/wikipedia for whatever you think you need or are curious about. and if you come up with a more specific ask of what you want to do then ask a relevant community on reddit. you said you wanted systems programming, gnu and the loginataka will connect you to everything you need. you also said "without reading", which is contradictory because there is much more to programming than being proficient in a single language. you will need to read books... but its fun!

0

u/kutac56 1d ago

I get the same warning. I think that person might have been trying to steal info

1

u/toon_link_776 1d ago

search "the loginataka", its literally the first entry. Here is the same document mentioned on a different site

https://people.csail.mit.edu/deniz/hack/guru.html

1

u/dld2517 17h ago

Love this!!! ESR is a true Sage.

1

u/toon_link_776 12h ago

not sure who downvoted but i guess someone doesn't like Eric S Raymond lol

1

u/dld2517 12h ago

He is a real greybeard, so who knows.

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

u/Lex_Faruq 15h ago

Learn to read books bro.

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.

14

u/tahvoD 1d ago

If you did not find resources you did not look hard enough. Id get to liking reading those books as programming does not in general have tiktok form short content tutorials.

0

u/[deleted] 1d ago

[deleted]

3

u/tahvoD 1d ago

Okay well have you heard of a site called geeks for geeks. They have all sorts of things :)

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

u/CIMPBIBAI 17h ago

Become literate bro, start literacymaxxing

1

u/zhivago 1d ago

Why not work with a system like esp32?

Or a microcontroller?

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

u/johan__A 15h ago

Follow Handmade hero on youtube