Hi all,
I have couple of questions, I hope I can find the answers
here...(assumin g the question are okay with this group)
A) what is memory alignment? I have a rough idea but cant clearly
understand it clearly...? If anyone has a pointer on net please tell
me.. I would be grateful...
Some told me that for memory to be aligned, the last 6 digits of the
address should be zero? is this correct?
B) so how can I write a function for example...
void * align_malloc(si ze_t size_of_memory_ required, int
bit_alignement_ required)
Any help would be appreciated..
Thanks and advance
Dp
I have couple of questions, I hope I can find the answers
here...(assumin g the question are okay with this group)
A) what is memory alignment? I have a rough idea but cant clearly
understand it clearly...? If anyone has a pointer on net please tell
me.. I would be grateful...
Some told me that for memory to be aligned, the last 6 digits of the
address should be zero? is this correct?
B) so how can I write a function for example...
void * align_malloc(si ze_t size_of_memory_ required, int
bit_alignement_ required)
Any help would be appreciated..
Thanks and advance
Dp
Comment