[gccsdk] fork/exec problems

John Tytgat John.Tytgat at aaug.net
Mon May 7 11:34:25 PDT 2012

In message <8372408c52.Jo at hobbes.bass-software.com>
          John Tytgat <John.Tytgat at aaug.net> wrote:

> You have to be aware of fork() vs vfork() differences.  One of those
> is that the child create with vfork() is sharing the same parent's
> address space, while fork() makes a complete copy.  That explains your
> observation of wimpslot size changes with fork() and also why this
> can only happen in Wimp context.

Also the implementation in UnixLib is relatively simple, it moves the
parent code at the end of application space, let the child run until it
finishes and parent continues.  So this does not end up with an extra
Wimp task, nor it allows you to have concurrently running parent & child.

John Tytgat, in his comfy chair at home                                 BASS
John.Tytgat at aaug.net                             ARM powered, RISC OS driven

More information about the gcc mailing list