[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Re: Allocation of large globals in external RAM
From: |
Ludovic COURTES |
Subject: |
[avr-gcc-list] Re: Allocation of large globals in external RAM |
Date: |
Thu, 3 May 2001 10:47:06 +0200 |
Hi !
> How can I tell the linker that I have 32K external RAM?
> How can I tell the linker where to put the stack (--defsym __stack=0x08000
> returns 'No such file or directory').
>
> Does anybody have working makefiles for early MCUCR, stack initialization?
'--defsym' is the option to tell avr-ld to redefine a symbol location. But when
compiling with avr-gcc, there is a special option to make it pass arguments to
avr-ld which is '-Xlinker'. Therefore, you could try :
avr-gcc $(CFLAGS) -Xlinker --defsym -Xlinker __stack=0x8000 -c foo.c -o
foo.o .
Note that ld's option have to be cut into to parts ('-Xlinker "--defsym
__stack=0x8000"'
won't work).
Ludovic.
--
Ludovic Courtes
University of Technology of Belfort-Montbeliard
Unitec (UTBM's students Robotics Club)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-gcc-list] Re: Allocation of large globals in external RAM,
Ludovic COURTES <=