How to Achieve Low-level Memory Usage in C++ Programs