Forum Discussion
Altera_Forum
Honored Contributor
13 years agoA big bug?
Hi, Here is a simple program:# include <stdio.h># include <io.h># include "sys/alt_stdio.h"# include "alt_types.h"# include "system.h" alt_u8 SND[1100]; int main() { int i; ...
Altera_Forum
Honored Contributor
13 years agoThe problem is about understanding the requirements of the processor architecture. NIOS II reference handbook tells:
--- Quote Start --- A data address is considered misaligned if the byte address is not a multiple of the width of the load or store instruction data width (four bytes for word, two bytes for half-word). Byte load and store instructions are always aligned so never take a misaligned address exception. --- Quote End --- The same is valid for most modern processors. x86 is an exception somehow.