Compile time initialized array error

♀尐吖头ヾ 提交于 2019-11-29 17:39:31

You can't use .space directive for initialized arrays. .space is for reserving N uninitialized bytes. You can use .byte or .word for such purpose, depending on the size of your data. In your example, you're using ASCII characters, so .byte should be OK.

.data

array: 
.byte 'A','B','C','D','E','F','G','H','I'

Any MIPS assembly reference should be OK. Here's one.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!