Hi,
I need to write a piece of code that will let me find the address boundaries of various local variables in order to determine their alignment. I was wondering if anyone would
a) Be able to explain to me exactly what the alignment of a local variable means (is it that it has something to do with its memory address being divizible by 4?)
b) Be able to give me a hint on how exactly I go about doing this (note in explaining a this will probably solve b too.)
cheers!
I need to write a piece of code that will let me find the address boundaries of various local variables in order to determine their alignment. I was wondering if anyone would
a) Be able to explain to me exactly what the alignment of a local variable means (is it that it has something to do with its memory address being divizible by 4?)
b) Be able to give me a hint on how exactly I go about doing this (note in explaining a this will probably solve b too.)
cheers!
Comment