[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


Janitor application acceptance emails are being sent out. Please remember to check your spam box!


[Advertise on 4chan]


File: 7432838422439932474399.png (1.52 MB, 1000x1333)
1.52 MB
1.52 MB PNG
Best textbooks for learning C that also teach systems programming/how the computer actually works? I'm looking at k&r and Effective C by Seacord right now. Any other recommendations?
I am open to blogs and documentation too. The more thorough it is, like the Gentoo wiki for example, the better.
>>
>>107179873
I liked A Book on C.
>>
>>107179873
K&R doesn't really go over C from a systems perspective, it's more so going over syntax and basic programming ideas
>>
>>107179873
K&R isn't really the book for you
Seacord is a bit of a faggot, and he uses a lot of nonstandard (i.e. gnu) shit
>>
File: 187833.jpg (22 KB, 318x393)
22 KB
22 KB JPG
Well written with good exercises. Generally C89, with C99 when it's relevant, but you can do everything in C99 or later if you want. Knowing C89 helps to understand older codebase differences and C99 is basically the start of what is now Modern C.

Unless you also happen to have a an old Unix machine handy, going through K&R is more trouble than it's worth.
>>
>>107179954
silence, pleb. there is only ANSI C.
>>
>>107179873
21st Century C - Klemens
A Book on C - Kelly, Pohl
Beginning C 5th Ed - Horton
Beej's Guide to C
C a Reference Manual 5th Ed - Harbison, Steele
C In a Nutshell - Prinz, Crawford
C Primer Plus 5th Ed - Prata
C Programming - King
Effective C - Seacord
Extreme C - Amini
Fluent C - Preschern
Tiny C Projects - Gookin
Head First C - Griffiths
K&R
Learn C Programming - Szuhay
Pointers on C - Reek
Practical C Programming - Qualline, Oram
Practical C - Zambone
Programming in C - Kochan
Schaum's Programming in C - Gottfried
Using C Pointers - Reese
>>
>>107179873
>teach systems programming
that's what man pages are for
>>
If you're new to the language, do K&R. It's a great book.
>>
>>107180409
>man pages
Are girls (male) allowed to read those?
>>
>>107179873
Unrelated to your faggy question but pic related will make you stand out among jeets who think learning C is the pinnacle of knowledge
>>
>>107179954
Seconding.
>>
>>107179873
Take the time to digest the book "Unix Systems for Modern Architectures: Symmetric Multiprocessing and Caching for Kernel Programmers", even though it's out of date, it's out of date in the sense that everything is *more* complicated now, so in effect it's an introduction to the topic.

As for C, there's stages you'll go through. K & R ANSI is fine to start. Next, you'll need to get "good", which really means implementing data structure and being comfortable with stupid APIs (like getopt_long() off the top of my head). Then there's understanding POSIX APIs and the difference between the 2nd and 3rd chapters of the man pages. Then there's threading and locking. Most people here stop and it's an absolute shame because they've really wasted their time unless they actually read the standard (c11 is a good place to start, look up n1570.pdf from wg14), then essentially re-learn everything again, except now you will know how to drill down to "chapter and verse" as the old comp.lang.c folks called it. Basically if you can cite chapter and verse for something, you *are* correct. Most people writing C have not read the standard of the language they're writing. It's akin to not understanding how to look up words in Emglish.

At this level, you may wish to branch out into various C adjacent fields such as linking, loading, assembly, calling conventions/ABIs, profiling, debugging, SIMD, crypto primitives, device drivers, kernels, bootloading, chain of trust/secure boot/UEFI/uboot, userspace network IO like DPDK, eBPF/kernel hooking, systemd/system daemons/cgroups/kernel namespacing, emulation, virtualization, containers, etc.
>>
Highly recommend
>>
>>107179954
>well written
lol, lmao even.
>800 pages
>>
File: Untitled.png (162 KB, 654x941)
162 KB
162 KB PNG
What is the Bible of the Assembly language?
>>
>>107179873
>tfw when you to university when that book was the literal assigned textbook for intro to C
>>
>>107181991
Do you have a link to PDF? not the global edition please.
>>
>>107181489
stop shilling your shitty books you retarded swede
>>
File: 1747180986813301.png (723 KB, 811x1000)
723 KB
723 KB PNG
>>107179873
>>
>>107182327
Use Google, faggot.
>>
>>107182327
I got one on libgen a while back
>>
>>107180185
>Extreme C - Amini
>Fluent C - Preschern
>Tiny C Projects - Gookin
>Learn C Programming - Szuhay
>Practical C Programming - Qualline, Oram
>Practical C - Zambone
>Programming in C - Kochan
>Schaum's Programming in C - Gottfried
Never heard of any of these. Can fags provide review/qrd please?



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.