memory stuff 354

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

12 Terms

1
New cards

Stack

ordinary local variables, usually used to manage function calls

2
New cards

Heap

dynamically requested storage

3
New cards

Code

the program's instructions

4
New cards

.data

nonzero initialized global/static objects

5
New cards

.bss

zero-initialized or uninitialized global/static objects

6
New cards

.rodata

read-only data segment for constants

7
New cards

Code (.text)

The section of a program containing executable instructions and function definitions, where the program's logic is implemented.

8
New cards
h & 1
Checks whether this block has been allocated.
9
New cards
h & 2
Checks whether the previous block has been allocated.
10
New cards
h & ~3
Removes both flags to get the block size.
11
New cards
h | 2
Sets the previous-allocated flag.
12
New cards
h & ~2
Clears the previous-allocated flag.