Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pointer is always byte aligned

Tags:

c

pointers

I read something like pointer must be byte-aligned. My understanding in a typical 32bit architecture... all pointers are byte aligned...No ?

Please confirm.

can there be a pointer which is not byte-aligned ?

Basically this is mentioned in a hardware reference manual for tx descriptor memory.

like image 860
kumar Avatar asked Sep 14 '26 05:09

kumar


1 Answers

Yes, you cannot address any amount of memory smaller than a byte.

like image 121
fmark Avatar answered Sep 16 '26 19:09

fmark