is it possible to develop our own emulator for iphone?

Discussion in 'iOS Programming' started by chinnu, Oct 27, 2009.

  1. macrumors newbie

    Joined:
    Oct 27, 2009
    Location:
    Australia
    #1
    hai this is chinnu.
    is it possible to develop emulator for iphone?
    as part of my application i need to develop an emulator .
    how to develop it.
    in which language i need to develop.
    api used to develop it.
    plz reply me.
    thanks in advance.
     
  2. macrumors member

    Joined:
    Jul 2, 2009
    #2
    It's possible (there's a C-64 emulator for example) but seeing as you don't seem to have much idea about how to go about it, may I suggest it's possibly not a job for which you're suited.
     
  3. macrumors 603

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #3
    Almost anything's possible. You could decap all the chips and electron probe each layer, reconstructing the logic transistor-by-transistor, and then build some mongo multi-FPGA board to try and (slowly) emulate the digital portions of the hardware. Not sure how many dozens of man years that might take.
     
  4. macrumors 68000

    Jason Beck

    Joined:
    Oct 19, 2009
    Location:
    Cedar City, Utah
    #4
  5. thread starter macrumors newbie

    Joined:
    Oct 27, 2009
    Location:
    Australia
    #5
    i didn't get u

    thanks for reply.
    i didn't get u.
    iam talking about emulator/simulator of iphone in which we run iphone applications developed by us in pc.
    how to develop our own simulator of that kind.
    do we have api for that.
     
  6. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #6
    An API? No: you'd have to redevelop the APIs that Apple provide on the phone yourself. If by PC you mean Windows PC you'll also need to provide your own binary loader, linker, graphics subsystem and more. If you mean release compiled apps you will also have to deal with binary translation from ARM to x86.
     
  7. thread starter macrumors newbie

    Joined:
    Oct 27, 2009
    Location:
    Australia
    #7
    plz explain me in detail

    iam new to iphone sdk programing.
    thank u very much to ur replies.
    but i didn't understand any thing what ever ur saying (robbieduncan).
    iam asking ,
    in which language the code is written for simulator of iphone.
    is it possible to develop simulator of that kind.
    do we have any api provided by apple/iphone guys to do it .
    plz explaing me .
    if u have any sample code to do it plz send me.
    my email: chinnu.thelearner@gmail.com
     
  8. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #8
    Then you have absolutely no chance of writing a successful simulator/emulator.

    The iPhone simulator in the SDK is an x86 executable that uses the frameworks already in Mac OSX along with additional frameworks from the iPhone OS (recompiled by Apple for x86). The applications themselves are written in Objective-C (or anything else you can get to compile to the same ABI and link against the libraries) compiled to x86 executables. Note that the x86 executables we are talking about here have a very different format to Windows executables: they are Mach-O executables.

    Yes assuming you understood everything I said before. As you do not have the re-distribution rights to the iPhone OS software (or Mac OSX frameworks) you will have to re-implement all of this, from scratch, yourself.

    No. Absolutely not. They provide a simulator for OSX.
     
  9. thread starter macrumors newbie

    Joined:
    Oct 27, 2009
    Location:
    Australia
    #9
    another doubt.

    thank u very much robbieduncan.
    now iam clear about it.
    i have another doubt?
    is it possible to develop an application using iphone sdk that accesses contacts in iphone and shows in simulator when iphone is connected to pc using bluetooth or cable.
    thanks in advance.
     
  10. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #10
    Yes
    I have no idea what you mean by this. The simulator only runs on Macs, not on PCs and if you are running in the simulator you are not using a device so the "connect" bit makes absolutely no sense.
     
  11. thread starter macrumors newbie

    Joined:
    Oct 27, 2009
    Location:
    Australia
    #11
    can we develop an emulator for iphone in mac Programing?

    hai this is chinnu.
    i'm new to iphone and mac programing.
    can we develop an emulator for iphone in mac Programing?
    if it is not possible with mac pro..
    please tell me in which programing i can do that.
    thanks in advance.
     
  12. macrumors regular

    Joined:
    Nov 5, 2008
    #12
    Apple already did.... download Xcode from developer.apple.com
     
  13. thread starter macrumors newbie

    Joined:
    Oct 27, 2009
    Location:
    Australia
    #13
    no dude! i have 2 develop my own emulator for iphone.
     
  14. macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #14
    You can emulate any turing-complete computer on any other turing-complete computer. This includes iPhones and Macs.
     
  15. thread starter macrumors newbie

    Joined:
    Oct 27, 2009
    Location:
    Australia
    #15
    thanks for ur reply(Catfish_Man).
    i didn't get ur explanation.
    by using which programing language it is possible to develop an emulator for iphone that works like simulator provided by iphone.
    and my emulator should have capability to run iphone app.
    is it possible?
    thanks in advance.
     
  16. macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #16
    Unfortunately, if you can't understand that explanation, you're really not going to be able to accomplish this task. It's a bit like asking how a candle works when the task is to build a guided missile.

    To directly answer the question though: any programming language can do it. It's just a question of how hard it is, and how fast the resulting program will run. Those answers will vary from "extremely hard" and "reasonably quick" to "impossibly hard" and "very slow".

    <edit>
    Ah, I see this thread was merged with another, where people had already pointed out how utterly doomed this project is.
    </edit>
     

Share This Page