David Daney <ddaney@xxxxxxxxxxxxxxxxxx> writes: > Marcus Clyne wrote: >> Hi David, >> >> Thanks for your quick reply. Other than forking and exec'ing, is >> there an easy way of determining this value within a C program? >> > > You could write code (perhaps using something like libelf) to iterate > through all the LOAD Program Headers, and add up their memory sizes. You can see those easily enough using "readelf -l". Ian