gcc malloc problem with Os X
My code has a loop in which several MB are allocated at a time, for a total of roughly 500 MB. This is well within the capacity of my Mac Pro which has 16 GB of RAM (dual quad-core architecture), but at some point in the loop the malloc returns a NULL instead of a memory address. I don't understand why malloc isn't giving me access to the memory I need. The code works fine on ubuntu linux machines with far less RAM.
Any insights into this issue would be appreciated.
Thanks
Mac Pro Dual Quad Core, Mac OS X (10.4)