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.

Large single compilation-unit C programs (2006)

50 pointsby Sadkovover 4 years ago

4 comments

lou1306over 4 years ago
May be relevant to the discussion: SQLite is also compiled from a single, 220k LOC C file called &quot;the amalgamation&quot;.<p><a href="https:&#x2F;&#x2F;www.sqlite.org&#x2F;amalgamation.html" rel="nofollow">https:&#x2F;&#x2F;www.sqlite.org&#x2F;amalgamation.html</a>
评论 #24728170 未加载
klelattiover 4 years ago
I&#x27;ve been working on a project that auto generates c programs - sometimes up to 1.5m lines of code - in a single file (actually two files but the second is only 35 lines)<p>Not open source but happy to share benchmarks if that would be useful.
评论 #24729071 未加载
评论 #24732261 未加载
评论 #24729045 未加载
enriqutoover 4 years ago
I like to code this way. You just include &quot;foo.c&quot; instead of &quot;foo.h&quot;, which does not exist at all. The compilation is really simple, and there&#x27;s half of the files!
Sadkovover 4 years ago
1283 = continue 1432 = license 1766 = gnu<p>So for every loop continue statement there is a GPL license text :D
评论 #24728107 未加载