Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1088203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:02:31+00:00 2026-05-16T23:02:31+00:00

MonoTouch has automatic garbage collection on the iPhone. Couldn’t someone prematurely implement garbage collection

  • 0

MonoTouch has automatic garbage collection on the iPhone. Couldn’t someone prematurely implement garbage collection for Objective-C on iOS? I’m not the guy to do it, but I’m curious as to why or whether this is impossible.

I know that projects like this exist: what does it take to use them on iOS? Since they are in C/C++ anyway, and Objective-C contains those languages as subsets, but yet, those languages are actually aware of the system architecture… I’m out of my depths here…

While we’re here, if anyone knows of any attempts to implement a GC on iOS, links would be helpful…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:02:32+00:00Added an answer on May 16, 2026 at 11:02 pm

    I don’t think it’s possible. The problem is that Objective-C is used inside the system library too. In OS X where garbage-collected Objective-C is supported, there are in fact three modes when you compile a code:

    1. the function compiled can be only called from non-GC environment.
    2. the function compiled can be only called from GC environment.
    3. the function compiled can be called both from GC and non-GC environment.

    See the discussion here, for example. The point is that the system library needs to be in the third mode in order for the OS to support both non-GC and GC apps. And in OS X, the libraries come in this hybrid mode. In iOS, I guess it comes in the mode 1. (I don’t know for sure because I haven’t jailbroken my phone, though.)

    If you have complete control over both the system library and your app, it’s possible to make them all garbage collected, but unfortunately we’re not in that stage yet.

    I’m sure we’ll have GC in iOS in two years.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It's well known that Apple does not provide automatic garbage collection on the iPhone
I have a MonoTouch iPhone app which has a UITableViewController as it's main view
I am building a project that has both Android and iOS clients with MonoTouch
As monotouch updates have stopped (another story), can I upgrade my iPhone/iPad to iOS
I am currently making an application for IOS with the Monotouch framework which has
I'm writing an iPhone application using Monotouch and recently the app has started crashing
I'm creating a MonoTouch app that has some declarative business logic that the client
I am new for monoTouch. I have a file called TargetConditions.h in Objective-C. I
I'm building a MonoTouch iPhone app, but have come up with a small issue.
I have a MonoTouch project which builds and runs fine on i386/iOS Simulator. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.