ARC 与 GC 区别

the short and sweet answer is as follow: java

1.GC of java is Runtime, while ARC is compile time. ios

2.GC has reference to the objects at runtime and check for the dependencies of object runtime. While ARC appends the release, retain, autorelease calls at compiletime. objective-c


更多连接: xcode

1.http://stackoverflow.com/questions/6385212/how-does-the-new-automatic-reference-counting-mechanism-work app

2.http://stackoverflow.com/questions/7900167/objective-c-2-0-garbage-collector-vs-automatic-reference-counter-in-ios-5-sdk code

3.http://longweekendmobile.com/2011/09/07/objc-automatic-reference-counting-in-xcode-explained/ ci