Make an application for two independent target, PPC and X86

Dear all,
Can you please help me, if there is any solution to make your application for a device target that support PPC architecture and you make it also for X86 target on VMBox for example!
you can running your application on both PPC Target and X86 VMBox Neutrino Target!


You need to compile the application twice, once for PPC and once for X86. Qnx has a standard set of makefiles that will do this automatically. You cannot make a single module that will work on both targets. If that is a requirement you might want to see if you can write your program in a script language like pearl, python, php or ruby.