Is ARC expected to work on ARM?

Hi all,

  I am working on making clang test cases pass on ARM. I found test cases
under ARCMT directory are failed, but this is contradict to what the
website [1] says (at least to me):

  ARC is supported in Xcode 4.2 for OS X v10.6 and v10.7 (64-bit
  applications) and for iOS 4 and iOS 5.

Aren't iOS ran on ARM device? I think this implies ARC should work on
ARM. Anyone can give comments on this? Thanks.

Regards,
chenwj

[1]
http://developer.apple.com/library/ios/#releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html

Aren't iOS ran on ARM device? I think this implies ARC should work on
ARM. Anyone can give comments on this? Thanks.

I don't know the answer to this question, but it's clearly a bit more complex: there's a difference between running on arm HARDWARE and running on ARM/iOS vs ARM/Linux. (I presume if you want to be a brave ecosystem explorer you could also consider ARM/WINCE :slight_smile: ). Is there an expectation that ARC tests only use run-time functionality that should work on the ARM/Linux combination?

Thanks for any clarifications,
David Tweed

FWIW, the ARCMT tests are NOT runtime tests. "MT" stands for "migration tool", so they are rewriting tests. They may depend on the selected ObjC runtime, but I wouldn't expect them to pass on other non-Darwin 32-bit platforms and fail on ARM/Linux.

I'm not so familiar with the ARCMT tests, though.
Jordan

There's nothing about ARC that's particularly more difficult on ARM —
well, actually, there is, but it's not relevant to your question.

It's likely that the ARCMT unit tests are simply failing in an unexpected
way, probably because the test case sets up an environment that's not
actually consistent with an ARM target. It's hard to judge without any
details about the failures, though.

Almost the right answer is going to be to restrict the test case or specify
a triple.

John.