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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

How to wrap a C compiler and preprocessor, really

78 点作者 matt_d9 个月前

1 comment

fuhsnn9 个月前
I have some experience getting several non-trivial projects to build with a small C compiler [1]. Generally, the more a toolchain resemblance, say GCC, the more GCC specific stuff build scripts will feed to it, this may send you down a rabbit hole of recreating GCC behavior distracting from the intended topic. There are simply too many varying factors in the internal messages between a toolchain&#x27;s sub-fuctions: versioning, target system, the specific installation&#x27;s default configuration etc. I have no idea what the author&#x27;s intended modification are, but it may be actually simpler, and more reliable, to modify a compiler at source level than to provide a drop in injection of a certain stage.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;fuhsnn&#x2F;widcc?tab=readme-ov-file#building-real-world-projects">https:&#x2F;&#x2F;github.com&#x2F;fuhsnn&#x2F;widcc?tab=readme-ov-file#building-...</a>
评论 #41479255 未加载
评论 #41479260 未加载