Compare commits
2 Commits
2179238502
...
4fb6031ff5
Author | SHA1 | Date | |
---|---|---|---|
4fb6031ff5 | |||
0d38d039ad |
@ -81,7 +81,7 @@ Process 65188 stopped
|
|||||||
```
|
```
|
||||||
|
|
||||||
Our program allocates two variables on the stack directly here. Notice that they
|
Our program allocates two variables on the stack directly here. Notice that they
|
||||||
are allocated right next to each other, their address only one bit apart. Most
|
are allocated right next to each other, their address only one byte apart. Most
|
||||||
primitive types are allocated on the stack, and are copied when being passed
|
primitive types are allocated on the stack, and are copied when being passed
|
||||||
around because they are small enough, so that copying them around is more
|
around because they are small enough, so that copying them around is more
|
||||||
reasonable than allocating them in the heap and passing around a pointer to
|
reasonable than allocating them in the heap and passing around a pointer to
|
||||||
|
Loading…
Reference in New Issue
Block a user