PDA

View Full Version : is it possible to develop our own emulator for iphone?




chinnu
Oct 27, 2009, 10:21 AM
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.



Troglodyte
Oct 27, 2009, 10:34 AM
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.

firewood
Oct 28, 2009, 01:29 AM
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.

Jason Beck
Oct 28, 2009, 01:38 AM
OK. First you need to go to http://dir.yahoo.com/entertainment/humor/tasteless/ate_my_balls/

I think one of those pages has a good emulator for iPhone. Just go through all the sites on that page till you find it.
k?
:D

chinnu
Oct 28, 2009, 01:43 AM
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.

robbieduncan
Oct 28, 2009, 04:47 AM
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.

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.

chinnu
Oct 28, 2009, 08:25 AM
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

robbieduncan
Oct 28, 2009, 08:30 AM
but i didn't understand any thing what ever ur saying (robbieduncan).
Then you have absolutely no chance of writing a successful simulator/emulator.


iam asking ,
in which language the code is written for simulator of iphone.
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 (http://en.wikipedia.org/wiki/Mach-O) executables.

is it possible to develop simulator of that kind.
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.

do we have any api provided by apple/iphone guys to do it .
No. Absolutely not. They provide a simulator for OSX.

chinnu
Oct 28, 2009, 09:11 AM
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.

robbieduncan
Oct 28, 2009, 09:18 AM
is it possible to develop an application using iphone sdk that accesses contacts in iphone
Yes
and shows in simulator when iphone is connected to pc using bluetooth or cable.
thanks in advance.
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.

chinnu
Nov 2, 2009, 01:07 AM
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.

stuarthatto
Nov 2, 2009, 01:56 AM
Apple already did.... download Xcode from developer.apple.com

chinnu
Nov 2, 2009, 03:00 AM
no dude! i have 2 develop my own emulator for iphone.

Catfish_Man
Nov 2, 2009, 03:13 AM
You can emulate any turing-complete computer on any other turing-complete computer. This includes iPhones and Macs.

chinnu
Nov 2, 2009, 04:01 AM
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.

Catfish_Man
Nov 2, 2009, 09:26 PM
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>