TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Nitty Gritty of “Hello World” on OS X

48 pointsby joesavageover 10 years ago

1 comment

userbinatorover 10 years ago
<i>I don&#x27;t want to explain each of the 8548 output bytes in detail here</i><p>I wonder how many people these days (including developers) would think &quot;that&#x27;s not so big for a Hello World program&quot;, and then change their mind after watching some 4k demos... 8KB might not sound like much in this era of gigabytes and terabytes, but <i>eight thousand bytes</i> is still, in absolute terms, quite a bit of data, and enough to do plenty more interesting things. Executable formats have become more complex with their headers, which are mostly unavoidable, but seeing empty space in the majority of the file is somewhat sad.<p>Here are some smaller Hello World programs to examine...<p><a href="http://seriot.ch/hello_macho.php" rel="nofollow">http:&#x2F;&#x2F;seriot.ch&#x2F;hello_macho.php</a> - OS X<p><a href="http://timelessname.com/elfbin/" rel="nofollow">http:&#x2F;&#x2F;timelessname.com&#x2F;elfbin&#x2F;</a> - Linux<p>...but they&#x27;re still somewhat larger than the 20 bytes of the DOS version (95 ba 07 01 cd 21 c3 48 65 6c 6c 6f 20 57 6f 72 6c 64 21 24.)
评论 #8577759 未加载
评论 #8577461 未加载