Program to do fork exec while touching large memory regions
===

I want to write some C code that has the following requirement:

1. Repeated fork exec.
2. The fork'ed process should use a large amount of memory and then either give it up or just die or I would just kill it.

Any ideas?