THIS WEEK'S SPONSOR:

Concepts

Sketch, Note, Draw


Support for Quad-Core ARM CPUs Found in Xcode

As reported by Chris Foreman at Ars Technica, code strings related to Marvell’s ARM-based quad-core CPUs have been found in the latest source code of Clang, Apple’s compiler for Xcode. Specifically, Ars Technica notes Clang shows support for Marvell’s Armada XP processor with an “undefined” open source flag, suggesting that only Apple can internally build code targeted towards such CPU.

A developer who works on low-level ARM assembly coding for security products was the first to alert Ars that support had been added for Armada’s Cortex A9-compatible processors in the latest version of Xcode (a claim that we later confirmed first-hand). The source code for a part of Clang that interprets what CPU type is being targeted for optimization includes a definition for an architecture type of “armv7k” and CPU type “pj4b”. PJ4B is a specially optimized CPU design used in Marvell’s quad-core Armada XP embedded processors. Source code available from the LLVM project, including Apple-specific branches, doesn’t contain any reference to the Marvell design.

There are a number of reasons why Apple would like to test support for ARM-based quad-core CPUs. First is low-power consumption, a characteristic of ARM architectures that has allowed Apple to build mobile devices with amazing battery life. Second is performance – just like the dual-core A5 provides faster graphics and performances than the first-gen A4, it wouldn’t be a surprise to know Apple is testing quad-core processors for the next generation of phones and tablets. On the other hand, the MacBook Airs were rumored earlier this year to be considered as the first Mac model to switch to ARM (again, the rumors mentioned battery life, extreme portability, and other often-quoted ARM advantages), although such transition would require developers to update their OS X applications to work with ARM, possibly only on MacBook Airs to start with. Many doubt Apple will switch Macs to ARM in the short term, especially considering Intel’s upcoming Ivi Bridge and Haswell processors (supposed to tackle the battery life and power consumption issues).

It’s interesting to note, however, that Apple is at least testing ARM-based quad-core CPUs internally, and that these references have made it into Clang’s source code.

Unlock More with Club MacStories

Founded in 2015, Club MacStories has delivered exclusive content every week for over six years.

In that time, members have enjoyed nearly 400 weekly and monthly newsletters packed with more of your favorite MacStories writing as well as Club-only podcasts, eBooks, discounts on apps, icons, and services. Join today, and you’ll get everything new that we publish every week, plus access to our entire archive of back issues and downloadable perks.

The Club expanded in 2021 with Club MacStories+ and Club Premier. Club MacStories+ members enjoy even more exclusive stories, a vibrant Discord community, a rotating roster of app discounts, and more. And, with Club Premier, you get everything we offer at every Club level plus an extended, ad-free version of our podcast AppStories that is delivered early each week in high-bitrate audio.

Choose the Club plan that’s right for you:

  • Club MacStories: Weekly and monthly newsletters via email and the web that are brimming with app collections, tips, automation workflows, longform writing, a Club-only podcast, periodic giveaways, and more;
  • Club MacStories+: Everything that Club MacStories offers, plus exclusive content like Federico’s Automation Academy and John’s Macintosh Desktop Experience, a powerful web app for searching and exploring over 6 years of content and creating custom RSS feeds of Club content, an active Discord community, and a rotating collection of discounts, and more;
  • Club Premier: Everything in from our other plans and AppStories+, an extended version of our flagship podcast that’s delivered early, ad-free, and in high-bitrate audio.