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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: How did Apple manage to create such a better chip than Intel?

68 点作者 aarkay超过 4 年前
The recent Apple M1 chip is faster and more efficient than the equivalent intel chips. Can someone with a better understanding of chip design explain to me:<p>1&#x2F; What specific design choices make the M1 so much better than the equivalent intel chips ? It looks like there are a bunch of changes -- 5nm silicon, single memory pool, a combination of high efficiency and high power cores. Can someone explain to me how each of these changes helps apple achieve the gains it did ? Are these breakthrough architectural changes in chip design or have these been discussed before?<p>2&#x2F; How did apple manage to create this when intel has been making chips for decades and that is the singular focus of the company ? Is it the fact that Mac OS could be better optimized for the M1 chips ? Given the design changes that doesn&#x27;t seem like the only reason.

22 条评论

kortex超过 4 年前
<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=25257932" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=25257932</a><p>My 10,000&#x27; view understanding:<p>- Small feature size. M1 is a 5nm process. Intel is struggling to catch up to TSMC&#x27;s 7nm process<p>- more efficient transistors. 7nm uses finFet. M1 probably uses GAAFET, which means you can cram more active gate volume in less chip footprint. This means less heat and more speed<p>- layout. M1 is optimized for Apple&#x27;s use case. General purpose chips do more things, so they need more real estate<p>- specialization. M1 offloads <i>oodles</i> of compute to hardware accelerators. No idea how their code interfaces with it, but I know lots of the demos involve easy-to-accellerate tasks like codecs and neural networks<p>- M1 has tons of cache, IIRC, something like 3x the typical amount<p>- some fancy stuff that allows them to really optimize the reorder buffer, decoder, and branch prediction, which also leverages all that cache
评论 #25381943 未加载
评论 #25382358 未加载
评论 #25381983 未加载
评论 #25381937 未加载
评论 #25381794 未加载
评论 #25381959 未加载
oneplane超过 4 年前
It&#x27;s not just the M1&#x27;s design, it&#x27;s what they don&#x27;t have to do: no need to support anything legacy. You can&#x27;t change the x86 ISA to the point where it makes a huge difference because it would no longer run x86 code.<p>Intel can probably make faster stuff than they currently do but then their customers (PC manufacturers for instance) would have to modify all their stuff as well and they don&#x27;t want to, or at least, won&#x27;t want the same thing.
评论 #25382086 未加载
评论 #25381929 未加载
评论 #25382134 未加载
评论 #25385952 未加载
评论 #25382087 未加载
rayiner超过 4 年前
Unfortunately Jon Stokes at Ars Technica and David Kanter at RWT have most stopped doing CPU design articles. The AnandTech one is the best I’ve seen: <a href="https:&#x2F;&#x2F;www.anandtech.com&#x2F;show&#x2F;16226&#x2F;apple-silicon-m1-a14-deep-dive&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.anandtech.com&#x2F;show&#x2F;16226&#x2F;apple-silicon-m1-a14-de...</a>
titzer超过 4 年前
Lots of other comments point out the vertical integration.<p>For raw single-thread performance:<p>1. ARM64 is a fixed-width instruction set, so their frontend can decode more instructions in parallel.<p>2. They got one honking monster of an out-of-order execution engine. (630 entries), which feed:<p>3. 16 execution ports.
评论 #25381939 未加载
titzer超过 4 年前
I think the M1 chip <i>finally</i> proves the inherent design superiority of RISC over CISC. For years, Intel stayed ahead of all other competitors by having the best process, clockspeeds, and the most advanced out-of-order execution. By internally decoding CISC to RISC, Intel could feed a large number of execution ports to extract maximum ILP. They had to spend gobs of silicon for that: complex decoding, made worse by the legacy of x86&#x27;s encodings, complex branch prediction, and all that OOE takes a lot of real estate. They could do that because they were ahead of everyone else in transistor count.<p>But in the end all of that went bye bye when Intel lost the process edge and therefore lost the transistor count advantage. Now with the 5nm process others can field gobs of transistors and they don&#x27;t have the x86 frontend millstone around their necks. So ARM64 unlocked a lot of frontend bandwidth to feed even more execution ports. And with the transistor budget so high, 8 massive cores could be put on die.<p>Now, people have argued for decades that the instruction density of CISC is a major advantage, because that density would make better use of I-cache and bandwidth. But it looks like decode bandwidth is the thing. That, and RISC usually requires aligned instructions, which means that branch density cannot be too high, and branch prediction data structures are simpler and more effective. (Intel still has weird slowdowns if you have too many branches in a cache line).<p>It seems frontend effects are real.
评论 #25382332 未加载
评论 #25382179 未加载
ibraheemdev超过 4 年前
I just wanted to point out that it is not Apple out of the blue made a chip better than Intel&#x27;s. They have also been designing chips for quite a while. The APL0098 chip that was used in the original iPhone was introduced back in 2007.
评论 #25381813 未加载
评论 #25381916 未加载
ksaj超过 4 年前
My suspicion is that they don&#x27;t need to worry about backward compatibility, or compatibility outside of their own hardware choices at all. That opens the door for them to tie OS decisions with CPU decisions straight from a single product family perspective.
acranox超过 4 年前
There have been several HN links discussing this. Have you read these yet? I thought they did a pretty good job answering your questions.<p><pre><code> https:&#x2F;&#x2F;debugger.medium.com&#x2F;why-is-apples-m1-chip-so-fast-3262b158cba2 </code></pre> <a href="https:&#x2F;&#x2F;medium.com&#x2F;swlh&#x2F;what-does-risc-and-cisc-mean-in-2020-7b4d42c9a9de" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;swlh&#x2F;what-does-risc-and-cisc-mean-in-2020...</a>
评论 #25381725 未加载
Fazel94超过 4 年前
ARM is RISC , Intel and AMD are CISC, One important reason is their new pipelining facility.<p>Apple M1 has 16 units that can pipeline their instructions.<p>Meaning, they can reorder sequential instructions that aren&#x27;t dependent on each other to run in parallel. That is not threads or anything, that can be and is being done in a single threaded program.<p>AMD and Intel have 4 units for reordering tops, because their architecture is CISC and on instruction can be up to 15 bytes. M1 is RISC and instructions are just 4 byte fixed-length. Thus architecturally it is easier to reorder instructions for RISC than CISC.<p>CISC were better because of the specific instructions but now Apple has stuffed their CPU with specific hardware for alot of things including machine learning, graphic processor and encryption, instead of specific instructions, Apple has specific hardware, and can do with less instructions.<p>And since they control hardware, software SDKs and OS they can actually get away with such radical changes. Intel and others can&#x27;t, without a big change in industry.<p>Source: <a href="https:&#x2F;&#x2F;debugger.medium.com&#x2F;why-is-apples-m1-chip-so-fast-3262b158cba2" rel="nofollow">https:&#x2F;&#x2F;debugger.medium.com&#x2F;why-is-apples-m1-chip-so-fast-32...</a>
评论 #25382195 未加载
fstopmick超过 4 年前
&gt; How did Tesla manage to create this when GM has been making cars for decades and that is the singular focus of the company?<p>(replaced the subjects with auto-industry corollaries)<p>I think it&#x27;s the power of vertical integrations. When you aren&#x27;t cobbling together a bunch of general-purpose bits for general-purpose consumers, you don&#x27;t have to pay as many taxes. Sort of like SRP in software - a multi-purpose function is going to become super bloated and expensive to maintain, compared to several single-purpose alternatives.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Single-responsibility_principle" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Single-responsibility_principl...</a><p>Vertical integration is like taking horizontally-integrated business units and refactoring them per SOLID principles.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;SOLID" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;SOLID</a>
throwarchitect超过 4 年前
Guess where some of Intel&#x27;s engineers have fled to? People move around, so it&#x27;s not like one company has a strangle-hold on knowledge that can&#x27;t be replicated by another company, especially when one of those companies is willing to pay more for talent.
swang720超过 4 年前
They weren&#x27;t weighed down by the legacy bloat in the x86 instruction set architecture.
评论 #25381918 未加载
Koiwai超过 4 年前
Several comments mentioned Apple M1 doesn&#x27;t need to support legacy, but Rosetta 2&#x27;s support for amd64(yes I choose this term over x86-64) is beyond great, and I looked into that specifically a while ago, some mention Apple had something designed specifically for amd64 emulation, So I&#x27;m against that point.
评论 #25406357 未加载
jcfrei超过 4 年前
This makes me wonder: If there&#x27;s such a benefit from creating an integrated and specialized chip, will the next consoles follow the same approach? Will they be ARM based? If Microsoft and Sony follow this same model then PC games might be left behind with poorer graphics and fewer titles.
评论 #25382158 未加载
chubot超过 4 年前
I imagine part of it is vertical integration. If you make the hardware that the CPU integrates with, and the OS that runs on the hardware, you can do a lot of optimization.<p>Intel CPUs don&#x27;t know what memory they&#x27;re talking to, i.e. they have to support a variety of memory. Likewise they don&#x27;t necessarily know what OS they&#x27;re running; how it context switches, etc. If it&#x27;s virtualized, etc. Sure they have optimizations for those common cases, but the design is sort of accreted rather than derived from first principles.<p>To make an analogy, if you know your JS is running on v8, you can do a bunch of optimization so you don&#x27;t fall off the cliff of the JIT, and get say 10x performance wins in many cases. But if you&#x27;re writing JS abstractly then you may use different patterns that hit slow paths in different VMs. Performance is a leaky abstraction.
wpg_steve超过 4 年前
I read that the out of order execution of the RISC was simpler to handle with the fixed 32 bit instructions. They said Apple managed to dispatch 8 instructions in parallel whereas the hi end CISC (x86) tops out at 4.
评论 #25381766 未加载
wangchucheng超过 4 年前
Apple has less technical debt and more aggressively eliminates old technologies.And Apple makes its own laptops and uses its own operating system. This allows Apple to provide relatively more complete support.
656565656565超过 4 年前
Does the unified memory architecture mean these SoCs will always have “limited” memory as some is in use by graphics?<p>Are we seeing a deeper bifurcation of the industry; personal vs server<p>Maybe intel and others can happily coexist?
pedalpete超过 4 年前
Innovators Dilemma.<p>I think you need to look at this from another angle. Yes, Apple did make some excellent choices, but the market was Intel&#x27;s to lose.<p>The difference in the chips isn&#x27;t limited to the 5nm, memory pooling, etc etc. Look at the base x86 vs ARM core architecture, and that is where you&#x27;ll see the problem Intel had.<p>I&#x27;m sure there were discussions inside Intel which went along the lines of one person arguing that they had to start developing ARM based or other RISC based chips, and somebody else countering &quot;but at Intel we build for the desktop, and servers, and RISC processors are toys, they&#x27;re for mobile devices and tablets. They&#x27;ll never catch-up with our...&quot;<p>This change in architecture was a long time coming. As we all know, there is very little we do with our computers today, that we can&#x27;t also accomplish on a phone (or tablet). The processing requirements for the average person are not that large, and ARM chips, made by Apple, Qualcomm, Samsung, or anybody else, have improved to the point they are up to some of the more demanding tasks. Even able to play high quality games at a good frame-rate or edit video.<p>So, now we have to ask, what was delaying the move from x86 to ARM. Apple aren&#x27;t the only ones making ARM based computers. Microsoft has two generations of ARM based Surface laptops out, and I think samsung has made one too. I&#x27;m sure there are others. This is a wave that has been building for a long time.<p>So, now we can look at why Apple was able to be so successful in their ARM launch compared to Microsoft and the lackluster reviews of Windows based ARM devices.<p>From my understanding, it isn&#x27;t the 5nm technology, though I a no expert in chip design. However, as you state, Apple was able to pool memory, and put their memory right on the chip, which (from what I understand) saves overhead of transferring memory in and out, as well as allowing CPU and GPU to share memory more efficiently.<p>As I understand it, the Qualcomm or other chips have a much smaller internal memory footprint, expecting the memory to be external to the CPU&#x2F;GPU. Perhaps because this is just always the way it has been done.<p>Now this is where Apple&#x27;s real breakthrough comes in. First off, they have the iOS app store and all the apps now available to use on desktop. This means all the video editing or gaming apps that were already designed for iOS can now run perfectly fine on the &quot;new&quot; ARM architecture. Then there is Rosetta2. Apple understood how important running legacy software for a small number of their users would be, and I suspect they also had very good metrics on what those legacy programs were. They did an exceptional job on Rosetta (from what I understand), and should be commended on that. Though most users will likely never use Rosetta extensively, it goes a huge way to making the M1 chip an absolute no brainer.<p>Compare Rosetta to Microsoft&#x27;s attempt at backward compatibility, and the difference seems glaring. HOWEVER, I think again this comes down to strategy and execution. Apple knows that only a small number of their customers need a small number of apps to run in Rosetta. Microsoft, having both a larger user base, AND much more bespoke software running on their platform, don&#x27;t have this luxury.<p>I&#x27;m sure there are other factors, but my thinking is it is less about direct technology and more flawed strategy&#x2F;execution from Intel and absolutely amazing execution from Apple.<p>I&#x27;m very torn by this all tbh. I&#x27;ve been an Apple hater for a long time. Every Apple product I&#x27;ve bought has turned out to be crap (except my original generation 2 iPod, it was truly magical). I&#x27;m beginning to think Apple may have actually got the upper hand here.
评论 #25381996 未加载
评论 #25381879 未加载
dboreham超过 4 年前
Only supporting 8G RAM may help too.
评论 #25386020 未加载
评论 #25381955 未加载
parisianka超过 4 年前
I&#x27;d like to know this too.
phendrenad2超过 4 年前
It just shows the power of RISC. Soon there will be RISC-V chips (or at least Samsung ARM chips - remember them?) that will closely follow it&#x27;s lead, mark my words...