How to run this on my pc ???

Hi all,
i compile simple "hello world" program.

powerpc-linux-g++ -static H_W.cpp -o hello

But I am unable to run this on my pc :(

Please help me out ...
Thanks
Andy
closed account (z05DSL3A)
It looks like you are compiling for the PowerPC architecture, does your PC have a PowerPC processor?
yes you are right.
my pc dont have power-pc arch.
So is there any way to run this on my pc?
Any kind of simulator ?
closed account (z05DSL3A)
I don't know of an emulator for the PowerPC architecture.
why do you need to do this?
My target m/c is based on power-pc architecture...
That's why i need to debug this build on my m/c.
Just use your normal compiler when you want to compile for your architecture (g++) and when you want to compile for the PowerPC, use the PowerPC cross-compiler as you did above.
Just use your normal compiler when you want to compile for your architecture (g++) and when you want to compile for the PowerPC, use the PowerPC cross-compiler as you did above.


So your approach should be:

(1) Compile to run on your PC
(2) Test and debug
(3) Cross compile to Power-PC
(4) Run regression tests on Power-PC

So, you will still need access to a Power-PC. Even if you ran on a simulator, you'd should still do step (4) in case there are differences between the compiler/cross-compiler/simulator/real hardware.
Well if he doesn't have physical access to a PowerPC board then that's the best he can do.
Here's a list of PowerPC emulators on Wikipedia:
http://en.wikipedia.org/wiki/Category:PowerPC_emulators
http://en.wikipedia.org/wiki/Category:PowerPC_emulators


ah ic. The non-tech answer is to borrow a Mac from a friend..
Last edited on
I think virtually all macs use Intel processors now.
I think virtually all macs use Intel processors now.


ah ok. From experience, I'd be shy of shipping on a production basis, unless it's been tested on real hardware.
Last edited on
I download QEMU on my win 7 m/c .
its not working :(
have anybody tried QEMU on win-7 ?
Topic archived. No new replies allowed.