简体   繁体   中英

Why do I get “illegal operand” errors when compiling SPARC assembly with GCC (2 lines, cmp and bl instructions)?

GCC complains that:

A3.s: Assembler messages: A3.s:32: Error: Illegal operands A3.s:33: Error: Illegal operands

The offending lines (italicized) and surrounding code are:

b random_init_for_test
nop

random_init_for_test:
**set 0, i_s
cmp i_s, 40**
bl random_init_for
nop

I am a beginner at SPARC assembly and I've had no luck at fixing this. Can anyone see the problem?

您是否缺少注册首选项(%)?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM