TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A general overview of what happens before main() (2019)

216 点作者 xept超过 2 年前

9 条评论

jart超过 2 年前
If you want a Blinkenlights visualization of what happens from BIOS boot to main() then watch the second video under this heading: <a href="https:&#x2F;&#x2F;justine.lol&#x2F;sectorlisp2&#x2F;#emulation" rel="nofollow">https:&#x2F;&#x2F;justine.lol&#x2F;sectorlisp2&#x2F;#emulation</a>
olalonde超过 2 年前
Related, Rust&#x27;s main(): <a href="https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;blob&#x2F;1.62.0&#x2F;library&#x2F;std&#x2F;src&#x2F;rt.rs#L138" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;blob&#x2F;1.62.0&#x2F;library&#x2F;std&#x2F;sr...</a>
评论 #32564812 未加载
loic-sharma超过 2 年前
Related, how to print &quot;Hello world&quot; without libc: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=b9OJYMFpHRU&amp;ab_channel=RubberDuckEng" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=b9OJYMFpHRU&amp;ab_channel=Rubbe...</a>
评论 #32559352 未加载
wrycoder超过 2 年前
previous: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16995811" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16995811</a>
madog超过 2 年前
Also see the &quot;From Zero to main()&quot; series:<p><a href="https:&#x2F;&#x2F;interrupt.memfault.com&#x2F;blog&#x2F;zero-to-main-1" rel="nofollow">https:&#x2F;&#x2F;interrupt.memfault.com&#x2F;blog&#x2F;zero-to-main-1</a>
saagarjha超过 2 年前
&gt; For example, OS X only has dynamically linked applications<p>Statically linked code is permissible on Intel.
评论 #32558425 未加载
asveikau超过 2 年前
It says _start (crt0.o) comes from libc. But note, if you run nm on a binary you can see _start is part of the binary, not libc.so.
评论 #32569654 未加载
评论 #32586972 未加载
anthk超过 2 年前
&quot;nm&quot; it&#x27;s your friend here.
chmaynard超过 2 年前
A minor quibble: the Mac operating system is no longer called OS X. The name changed to macOS in 2016, to align with the branding of Apple&#x27;s other operating systems.
评论 #32556666 未加载
评论 #32556635 未加载
评论 #32556757 未加载
评论 #32556864 未加载