Forum Discussion
Altera_Forum
Honored Contributor
10 years agoThe general answer is the align your data :-)
The code will be cached, I presume you have a data cache for most data accesses. memcpy() will be optimised for long aligned copies. If you do need to read misalgned items from uncached memory you want to do two 32bit aligned reads and then some shifts and masks.