将“你”融入CPU (2023)
Putting the "You" in CPU (2023)

原始链接: https://cpu.land/

这位作者发现自己对计算机科学知识存在一个缺口:程序在计算机上实际*运行*的详细过程。尽管他们具备基础知识,但仍然难以将代码、CPU 和系统调用联系起来。 为了理解,他们开始了独立研究,从各种(有时相互矛盾)来源中整理了近 40 页的笔记。结果是渴望创建一个全面的资源,解释从计算机启动到程序执行的整个过程——他们希望自己能找到的那种解释。 作者认为真正理解一个概念需要向他人解释它,并自信地表示即使是有经验的程序员也能在他们详细的探索中找到新的见解。他们邀请读者从第 1 章:“基础知识”开始。

黑客新闻 新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 将“你”融入CPU (2023) (cpu.land) 6点 由 vinhnx 1小时前 | 隐藏 | 过去 | 收藏 | 讨论 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请YC | 联系 搜索:
相关文章

原文

I’ve done a lot of things with computers, but I’ve always had a gap in my knowledge: what exactly happens when you run a program on your computer? I thought about this gap — I had most of the requisite low-level knowledge, but I was struggling to piece everything together. Are programs really executing directly on the CPU, or is something else going on? I’ve used syscalls, but how do they work? What are they, really? How do multiple programs run at the same time?

A scrawled digital drawing. Someone with long hair is confused as they peer down at a computer ingesting binary. Suddenly, they have an idea! They start researching on a desktop computer with bad posture.

I cracked and started figuring as much out as possible. There aren’t many comprehensive systems resources if you aren’t going to college, so I had to sift through tons of different sources of varying quality and sometimes conflicting information. A couple weeks of research and almost 40 pages of notes later, I think I have a much better idea of how computers work from startup to program execution. I would’ve killed for one solid article explaining what I learned, so I’m writing the article that I wished I had.

And you know what they say… you only truly understand something if you can explain it to someone else.

In a hurry? Feel like you know this stuff already?

Read chapter 3 and I guarantee you will learn something new. Unless you’re like, Linus Torvalds himself.

Continue to Chapter 1: The “Basics”
联系我们 contact @ memedata.com