January 15, 2003

Skid 19

i’m in
a russia
all
thongs considered
but bloom
instead
in
face of
dangerfield
and cantonese
keds
(these are

fumes
of my flavanoid
things)
songs of
viral
torques
allow through
polygamous
pistil
forced
punt exposures
(the moose so

message
loose
but jogging)
"us
military spams
iraq"
the creeps
and gobblers
horrorshop
bibles
nettled
in frisked paucity

Posted by Brian Stefans at January 15, 2003 05:45 PM
Comments

Let's see an example by converting our favoriteNumber variable from a stack variable to a heap variable. The first thing we'll do is find the project we've been working on and open it up in Project Builder. In the file, we'll start right at the top and work our way down. Under the line:

Posted by: Christopher at January 18, 2004 08:01 PM

When a variable is finished with it's work, it does not go into retirement, and it is never mentioned again. Variables simply cease to exist, and the thirty-two bits of data that they held is released, so that some other variable may later use them.

Posted by: Eleanor at January 18, 2004 08:01 PM

The Stack is just what it sounds like: a tower of things that starts at the bottom and builds upward as it goes. In our case, the things in the stack are called "Stack Frames" or just "frames". We start with one stack frame at the very bottom, and we build up from there.

Posted by: Geoffrey at January 18, 2004 08:02 PM

The Stack is just what it sounds like: a tower of things that starts at the bottom and builds upward as it goes. In our case, the things in the stack are called "Stack Frames" or just "frames". We start with one stack frame at the very bottom, and we build up from there.

Posted by: Christian at January 18, 2004 08:03 PM

Our next line looks familiar, except it starts with an asterisk. Again, we're using the star operator, and noting that this variable we're working with is a pointer. If we didn't, the computer would try to put the results of the right hand side of this statement (which evaluates to 6) into the pointer, overriding the value we need in the pointer, which is an address. This way, the computer knows to put the data not in the pointer, but into the place the pointer points to, which is in the Heap. So after this line, our int is living happily in the Heap, storing a value of 6, and our pointer tells us where that data is living.

Posted by: Wymond at January 18, 2004 08:04 PM