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.

Cat *.c >tmp.c && gcc -O3 -fwhole-program $YOURFLAGS -o ohmygawditsfast tmp.c

12 pointsby mrpixelover 14 years ago
This will get you warp-speed if there're no clashes. -Os instead of -O3 makes another wet dream come true (guess which).

3 comments

wtallisover 14 years ago
Or, just use LLVM's link time optimization:<p><a href="http://llvm.org/docs/LinkTimeOptimization.html" rel="nofollow">http://llvm.org/docs/LinkTimeOptimization.html</a>
评论 #1948284 未加载
amockover 14 years ago
It's not a C compilers, but Mlton is an interesting SML whole program compiler. There's also JHC for Haskell which is nifty but can't quite compile all Haskell programs. I also found the Stalin Scheme compiler very interesting since it seems like a whole program compiler for a dynamically typed language like Scheme should be able to do a lot of interesting things.
leppieover 14 years ago
Why not just pass *.c to gcc ? Same thing isn't it?
评论 #1949534 未加载