Assembler errors
Joost van der Weerden
weerden@bladel.tokheim.com
Wed Jun 5 02:31:00 GMT 2002
Hi,
I wrote a very large project for a Nios processor (Altera) When I build
that project (compile, link and assemble) everything goes right the first
times. When I add some more code to it and then try to assemble i'll get
the following messages:
[nios]$ nb -cc -mmax-address=0x1fffff main.c.c
--------------------
Beginning Build
--------------------
Sources:
main.c
# 2002.06.05 10:44:44 (*) nios-elf-gcc -I ../inc -I ../../inc -I
../../../inc -I ../../../../inc -I ../../../../../inc -g -O2
-mmax-address=0x1fffff -m32 main.c -o main.c.o -c
C:\Cygwin\/tmp/cceJZ3Uc.s: Assembler messages:
C:\Cygwin\/tmp/cceJZ3Uc.s:243: Error: Value of 65636 too large for field of
2 bytes at 248
C:\Cygwin\/tmp/cceJZ3Uc.s:244: Error: Value of 65636 too large for field of
2 bytes at 250
C:\Cygwin\/tmp/cceJZ3Uc.s:245: Error: Value of 65636 too large for field of
2 bytes at 252
C:\Cygwin\/tmp/cceJZ3Uc.s:34811: Error: Value of 65572 too large for field
of 2 bytes at 50356
C:\Cygwin\/tmp/cceJZ3Uc.s:34812: Error: Value of 65572 too large for field
of 2 bytes at 50358
C:\Cygwin\/tmp/cceJZ3Uc.s:34813: Error: Value of 65572 too large for field
of 2 bytes at 50360
C:\Cygwin\/tmp/cceJZ3Uc.s:42130: Error: Value of 65636 too large for field
of 2 bytes at 60036
C:\Cygwin\/tmp/cceJZ3Uc.s:42131: Error: Value of 65636 too large for field
of 2 bytes at 60038
C:\Cygwin\/tmp/cceJZ3Uc.s:42132: Error: Value of 65636 too large for field
of 2 bytes at 60040
These are the lines which they refers to:
243: pfx %hi(ACQ_Resort_Functioning@h)
244: movi %g1, %lo(ACQ_Resort_Functioning@h)
245: movhi %g1, %xlo(ACQ_Resort_Functioning@h)
34811: pfx %hi(SYS_Load_Software_Mode@h)
34812: movi %o0, %lo(SYS_Load_Software_Mode@h)
34813: movhi %o0, %xlo(SYS_Load_Software_Mode@h)
42130: pfx %hi(ACQ_Resort_Functioning@h)
42131: movi %g1, %lo(ACQ_Resort_Functioning@h)
42132: movhi %g1, %xlo(ACQ_Resort_Functioning@h)
To build the project I use the following command line: "nios-build -cc
-mmax-address=0x1FFFFF main.c"
nios-build is a script to compile, link and assemble with the options for
nios. It also uses -O2 and -m32
When i remove some lines everything is ok. How can I bypass this
problem? I read something about that that they only can jump one Word far.
Does someone knows more about this or have a solution?
regards Joost
More information about the Gcc-help
mailing list