BH
Size: a a a
BH
S
NM
BH
NK
NM
BH
D
NK
NK
NK
NK
IZ
#include <iostream>
int main() {
int a = 1;
int b = 2;
std::cout << &a << std::endl;
std::cout << &b << std::endl;
std::cout <<"space between int vars:" << reinterpret_cast<long int>(&a) - reinterpret_cast<long int>(&b) << std::endl; //4
std::cout << "sizeof(int) " << sizeof(int) << std::endl; //4
}
AS
K
AS
D
SK
buf1= kmalloc(123);
if(!buf1) goto bad_buf1;
buf2 = kmalloc(123);
if(!buf2) goto bad_buf2;
...
if(!bufn) goto bad_bufn;
//в конце раздел очистки:
в противоположную сторону
bad_bufn:
очиста n;
...
bad_buf1:
очиста 1;
IZ
K