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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

See What Your C Function Compiles To

7 点作者 SworDsy将近 10 年前

2 条评论

Samathy将近 10 年前
The output provided when looking at the given example squaring function without and then with the compiler option -O (GCC 5.1.0 or Clang 3.6) is rather interesting.<p>The code goes from something rather crazy looking, to something that a human would write. Its surprising that these compilers arnt clever enough already to produce the optimized output by default.
J_Darnley将近 10 年前
&gt; Compiler: x86 gcc 4.9.2<p>&gt; Compiler options: -march=i686<p>&gt; error: CPU you selected does not support x86-64 instruction set<p>Strange, I&#x27;m sure x86 is not x86_64