News for hackers. Stuff that matters.
Re:ARM64 and You by Tuna-Fish on Friday September 27, 2013 @12:43PM (#6457874)
This is a reasonable, short overview of the programmer-visible side of changes in A64.

For those interested, there's an another side. A64 drops all the features of the ISA (inline variable shifts, conditional execution, variable-width instructions) that are hard to implement in a fast, high-power CPU. If a cpu is to not have any 32-bit ARM compatibility, there's no reason one couldn't make a 4GHz 4-wide superscalar one based on A64.

Re:ARM64 and You by ajross on Friday September 27, 2013 @05:52PM (#6459809)
This is true, but that last sentence is a doozy. The AArch64 ISA drops that stuff. The A7 CPU, which much remain compatible with legacy code, must not. So yes, a theoretical CPU would have a much easier design task, but in the real world we'll never see one.

And in any case: there's another reasonably well-known company out there with an even cruftier ISA making 4+GHz 6-wide superscalar cores with backwards 32 (and 16!) bit compatibility modes. Instruction decode is the sort of thing programmers understand, so we tend to get hung up on it when talking about CPUs. It's really not a meaningful design limitation to a CPU core implemented with hundreds of millions of transistors.

Re:ARM64 and You by plorkyeran on Friday September 27, 2013 @07:15PM (#6460134)
I would not be surprised if an iPhone without support for 32-bit apps came out within a few years. Apple has been pretty willing to break existing apps with iOS updates, so there's no real expectation that something which works today will continue to work indefinitely with no changes.
Re:ARM64 and You by christoph on Friday September 27, 2013 @09:49PM (#6460557)
This.

Apple's track record proves that they are more than happy to drop anything more than a couple of years old if it means general forward progression.

My real bugbear is that to some extent they've created the modern day IE6 by not updating Safari on the old iPad.

Also, if you look at some legacy iOS apps on the Appstore (designed pre 6.x), they are pretty much 100% broken on 6.x+

Re:ARM64 and You by bodyfour on Saturday September 28, 2013 @06:58AM (#6461514)
There is already the ARM "big.LITTLE" architecture which pairs fast high-power cores with slow low-power ones on the same die. In the future I could imagine that extended so that a subset of cores are 64-bit only.

As others mentioned, though, I don't think Apple will need to do that since they've got a closed ecosystem. They can just declare one day that they won't accept App Store submissions that don't include a 64-bit version and very quickly move the entire universe of iOS software. There will be some no-longer maintained apps that aren't updated but they can just say "Sorry, this app doesn't support iOS 8"

There are also binary-translation techniques like what they did with Rosetta in the PowerPC->Intel transition. This wouldn't need to be done on the phone; they could just do the translation once on the app-store side.

Re:ARM64 and You by Tuna-Fish on Saturday September 28, 2013 @03:34AM (#6461245)
> in the real world we'll never see one.

Not from Apple, maybe. I know there is at least one in the works for the server market.

> And in any case: there's another reasonably well-known company out there with an even cruftier ISA making 4+GHz 6-wide superscalar cores with backwards 32 (and 16!) bit compatibility modes. Instruction decode is the sort of thing programmers understand, so we tend to get hung up on it when talking about CPUs.

You absolutely can implement a fast core out of almost any ISA (just look at IBM System z!) if you have sufficient resources. The point is that A64 is amenable to being made into a fast CPU without Intel-scale design effort.

Re:ARM64 and You by protomyth on Friday September 27, 2013 @07:11PM (#6460115)
I'm not so sure we won't see a AArch64 only version. A server version would be fine with dropping the 32-bit part.
Re:ARM64 and You by ghshephard on Friday September 27, 2013 @08:42PM (#6460411)
As would a Desktop/Laptop which have no legacy 32 bit applications/drivers to be concerned about.
Re:ARM64 and You by michaelt on Saturday September 28, 2013 @06:16AM (#6461466)
ARM already has multiple-cycle instructions and variable clock rates. Why shouldn't they release a faster-clocked processor where every instruction in 32 bit mode takes 2 clock cycles?
Re:ARM64 and You by mappu on Friday September 27, 2013 @08:25PM (#6460367)
Wait, AArch64 really drops conditional execution?

When i was learning x86 assembly, discovering CMOV was fantastic, drastically simplified all my code (versus cmp+je+hundreds of extraneous labels.. notwithstanding macros). The fact ARM could do that for almost all instructions was one of the main reasons in my mind why ARM was considered a "cleaner" architecture than x86.

EDIT: crisis averted, a comment further down ( https://news.ycombinator.com/item?id=6458457 ) clarifies the change.

Re:ARM64 and You by rwmj on Saturday September 28, 2013 @06:03AM (#6461451)
Wait, AArch64 really drops conditional execution?

Some, yes (but it is retained in 32 bit mode).

The reason it was dropped is that it's hard to implement. It adds an implicit data dependency between an instruction and previous results. In a pipeline, the results of previous instructions aren't available immediately, there is usually a delay of many cycles before a "previous" instruction actually finishes and retires. So if your "current" instruction needs the result of the one before it, it's going to have to wait, stalling the pipeline. Adding extra dependencies such as instructions that depend on the state of the flags register is not desirable. IIRC it also makes register renaming hard when one implicit register (the flags) is heavily used.

Re:ARM64 and You by btian on Friday September 27, 2013 @12:49PM (#6457913)
There is one - power consumption.
Re:ARM64 and You by Tuna-Fish on Friday September 27, 2013 @01:21PM (#6458161)
Well yes, it won't fit on a phone. The point was that making a CPU that rivals current desktop cpus is possible using A64, so long as you are willing to expand your power budget to meet them.
Re:ARM64 and You by justincormack on Friday September 27, 2013 @02:12PM (#6458544)
Yes its interesting to see a really new ISA, much newer than the old high end contenders like Sparc and Power.