s-macke / jor1k

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

gcc compile err #140

Open ohisama opened 5 years ago

ohisama commented 5 years ago

~ $ cat main.c

include

include

int main(int argc, char * argv[])
{
int i;
for (i = 1; i < argc; i++)
{
printf("%s%s", (i == 1 ? "" : " "), argv[i]);
}
putchar('\n');
exit(0);
}

~ $ gcc main.c
/tmp/cccDMhHm.s: Assembler messages:
/tmp/cccDMhHm.s:61: Error: operand out of range (1073741797 not between -3355443 2 and 33554431)
~ $

s-macke commented 5 years ago

Please try it again.