Simply put, no.
Vanilla ports of GCC (no patching) use execve several times during a conventional run (at least once to run "cc1" or "cc1plus", and once more to run "as", and then "collect2" and "ld" if you don't specify "-c"). If you want to port applications which depend on POSIX semantics, you can't get around it.
In my OS, I have a POSIX subsystem which will be separate from the native OS-specific native API, which means it's possible to run POSIX applications alongside native applications. In your case, this would mean a set of POSIX system calls with POSIX semantics (exec and so on), and a set of native system calls with your semantics (CreateProcess).
_________________ Pedigree | GitHub | Twitter | LinkedIn
Last edited by pcmattman on Fri Nov 20, 2009 3:14 am, edited 1 time in total.
|