This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Assembler errors with project for a Nios
- From: "Bobby McNulty Junior" <bmj2001 at bellsouth dot net>
- To: "Joost van der Weerden" <weerden at bladel dot tokheim dot com>,<gcc at gcc dot gnu dot org>
- Date: Wed, 5 Jun 2002 04:51:51 -0500
- Subject: RE: Assembler errors with project for a Nios
-----Original Message-----
From: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org]On Behalf Of
Joost van der Weerden
Sent: Wednesday, June 05, 2002 4:48 AM
To: gcc@gcc.gnu.org
Subject: Assembler errors with project for a Nios
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
^^^^^^^^^
should be main.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