在指令手册中关于LDW的地址对齐要求是这么说的:Word addresses must be aligned on word (two LSBs are 0) boundaries.在我的应用代码中出现的问题是,LDW指令的地址并不能保证是word对齐的,比如地址末尾是0x06,LDW指令会从0x04处读取数据,这就导致我的应用出问题了。
我想问的是能不能通过编译器的配置或者其他的设置来避免这种情况。因为对于应用来讲,是不能够时时刻刻保证地址是一定对齐的。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.