Roger Gilbrat
Roger Gilbrat

Reputation: 3835

Seeing where ARC is inserting retain and releases

Is there a compiler option (or some other way) to see where ARC is inserting retain and releases? This is mostly out of curiosity. I can see them in the disassembly code, but that's hard to wade through sometimes.

Upvotes: 19

Views: 673

Answers (2)

Lily Ballard
Lily Ballard

Reputation: 185671

No. If the compiler were to provide this, you'd get absolutely overwhelmed by the number of retains/releases, since most of them are taken out during the optimization stage. But the compiler can't even do that, because ARC isn't a pre-processing stage. It's part of the compilation. So you're not going to be able to get anything besides looking at the assembly.

Upvotes: 5

dgund
dgund

Reputation: 3467

No, it does not. I agree though, it would be a pretty neat addition (although it wouldn't serve many functions)! And like you said, you can look in the disassembly code if you are really curious.

Upvotes: 0

Related Questions