s-macke / jor1k

Online OR1K Emulator running Linux
http://jor1k.com
BSD 2-Clause "Simplified" License
1.73k stars 193 forks source link

Assembler messages: operand out of range #139

Open Qwertylex opened 5 years ago

Qwertylex commented 5 years ago

All of the following projects fail to assemble on jor1k but work fine on x86 end up with very similar error:

https://github.com/gsson/gulp

and also:

https://gist.github.com/Qwertylex/8da95c27fa66af0401becd4837d03513 ``` ~ $ gcc -std=gnu99 nn.c /tmp/ccjjkNEG.s: Assembler messages: /tmp/ccjjkNEG.s:141: Error: operand out of range (1073741758 not between -33554432 and 33554431) /tmp/ccjjkNEG.s:144: Error: operand out of range (1073741716 not between -33554432 and 33554431) ~ $ ``` see lines 141 and 144 of https://gist.github.com/Qwertylex/75785601962e1d8ca1986fd7f88a6de6 for the lines mentioned in the above error... and fseek-test: https://github.com/ECE2524/fseek-test ``` ~ $ make gcc -Wall -Wextra -pedantic -D_XOPEN_SOURCE=700   -c -o fdaccess.o fdaccess.c /tmp/ccHHMpHG.s: Assembler messages: /tmp/ccHHMpHG.s:62: Error: operand out of range (1073741805 not between -33554432 and 33554431) make: *** [fdaccess.o] Error 1 ~ $ ```