First, when you think that you are allocating RAM, you really do not. This is confusing, I know, but it really is not difficult as soon as you understand how it works. Keep reading.
, "". 4kiB, ( , " " ( 1-4MiB) , , , Windows 4kiB 64kiB).
"", (4KiB).
, , , , , "", . ( ) , , . MMU.
, , , , (, - , , , ).
- . [ ] ( ) , . < > , "" , , ( ). , , - , ( !).
(, malloc), , ( , , , - , , ).
, . Linux sbrk mmap, Windows , , VirtualAlloc.
, 3 , , , , Linux Windows ( ), API , .
, , ( ).
, , . , ( RAM ), . , , , , . , , .
, . , , . ( !), ( ), (, ). , , .
, . .
, , ( ) . , , , , . . Windows , , VMMap .
, , , , .
[] . , , , , 32 64 . , 32 , 64 . , , 32 , (, , ) .