Objective-C compiler on iPhone

Discussion in 'iPhone' started by kgoyal15, May 26, 2008.

  1. kgoyal15 macrumors newbie

    Joined:
    May 20, 2008
    #1
    Does iPhone OS has Objetive-C compiler ? or Can I install the same on iPhone OS to compile my ObjC applications on iPhone?
     
  2. goosnarrggh macrumors 68000

    Joined:
    May 16, 2006
    #2
    You didn't mention whether you were talking about using the official SDK or jailbreaking.

    Either way, AFAIK right now you pretty much have to do your compiling on a full computer, and transfer the compiled output over to the iPhone.

    That's probably for the best, for a couple of reasons.

    For one thing, with programs of a substantial size, the system's 128 MB of RAM, with no swap memory, is potentially insufficient as compilers tend to be memory hogs. Less than that would actually be accessible to the compiler after the OS and always-on applications have taken their share.

    As well, compiling applications can result in quite a few temporary files being created on the filesystem, which are subsequently thrown away once the build is complete. These files being created and destroyed would have an unwelcome effect on the useful life of your Flash storage.
     
  3. kgoyal15 thread starter macrumors newbie

    Joined:
    May 20, 2008
    #3
    Hi goosnarrggh
    Thanks for the reply. I want to compile a small dylib on the iPhone, the code for that dylib is in Objective-C and it'll be moved from Windows to iPhone.
     

Share This Page