Force C/C++/PAS oom test programs to use resident memory

It seems that the compilers are smart enough not to allocate the whole
array in memory if we are just using some portion of it.