spim:(parser) Label is defined for the second time 解决方法
在使用QtSpim读取汇编语言文件时提示:spim:(parser) Label is defined for the second time on line xx of file xxx main:,出现这个错误是因为你没有在载入文件前初始化你的模拟器;
![qtspim error](https://static.perfcode.com/uploads/2021/11/26/3aac798aa5d56249dcdcc157bbeaafb8.png)
解决方法
如果能确保代码没错的话,请先执行初始化模拟器操作;
打开菜单【Simulator】【Reinitialize Simulator】,操作完成后再重新载入文件;
![reinitialize simulator](https://static.perfcode.com/uploads/2021/11/26/4f2b147e73b3fce3584061de18be86f9.png)
或者使用【Reinitialize and Load File】进行载入文件操作;
![reinitialize and load file](https://static.perfcode.com/uploads/2021/11/26/10b53da36dad5a74578f0b98b5c8ee8d.png)