小编thu*_*asi的帖子

使用PPC汇编程序时"错误:操作数超出范围"

我使用cygwin在windows中使用'powerpc-eabi'作为TARGET来构建gcc交叉编译器/汇编器/链接器.组装时,我收到以下错误....

code/sfiles/init_evh.s: Assembler messages:
code/sfiles/init_evh.s:381: Error: operand out of range (0x0000fffd is not between 0xffff8000 and 0x00007fff)
Run Code Online (Sandbox Code Playgroud)

但是,在该行号中,存在以下指令:

addi  r2,0,0xFFFD
Run Code Online (Sandbox Code Playgroud)

我使用follwing命令进行汇编:

c:/cygwin/home/cdot/powerpc/bin/powerpc-eabi-as -mbig-endian -m603 -mregnames --
defsym _NDI_=1 --defsym _DBGR_ON_=1 --defsym DEBUG=1 --defsym _PARAM_DEBUG_=1 --
defsym _NIU_=1 -gdwarf-2 -I code/hfiles -o build/niu_ndi_dbgr_init_evh.o code/sf
iles/init_evh.s 2>build/niu_ndi_dbgr_init_evh.err
Run Code Online (Sandbox Code Playgroud)

我想知道为什么会出现上述错误.

请帮助这个方向.

assembly gcc powerpc inline-assembly

2
推荐指数
1
解决办法
1172
查看次数

标签 统计

assembly ×1

gcc ×1

inline-assembly ×1

powerpc ×1