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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Abusing the C Compiler

40 点作者 wingo超过 14 年前

3 条评论

acqq超过 14 年前
Hardly abusing or original, generating small chunks of code and invoking C compiler on each of these is how GNU autoconf works (and the reason it works slow, too!)
评论 #1671520 未加载
nitfol超过 14 年前
<a href="http://perldoc.perl.org/pstruct.html" rel="nofollow">http://perldoc.perl.org/pstruct.html</a> takes this a bit further (but less portably), and compiles the code to assembly and parses out the debug records to find the information about the structures.
JoeAltmaier超过 14 年前
Very cute; very problematical. C struct offsets depend entirely on the model, packing, target etc. How can this be controlled?
评论 #1671846 未加载
评论 #1672830 未加载