Soubok Soubok - 1 year ago 133
C Question

detecting the memory page size

Is there a portable way to detect (programmatically) the memory page size using C or C++ code ?

Answer Source

Since Boost is a pretty portable library you could use mapped_region::get_page_size() function to retrieve the memory page size.

As for C++ Standard it gives no such a possibility.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download