avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] External SRAM - change bss section?


From: Michel Catudal
Subject: Re: [avr-gcc-list] External SRAM - change bss section?
Date: Tue, 20 Feb 2001 12:29:42 -0500

Jochen Pernsteiner a écrit :
> 
> Hello,
> 
> how can I convince the compiler (or linker) that I have external
> SRAM connected to my  4414 or 8515 ?
> 
> The problem is that I want to use a large array as global variable,
> but the linker says that the bss section is to small.
> The compiler switch "-minit-stack" doesn't work of course, since it
> doesn't change the bss section. There is also a switch "-Tbss" for
> the linker, but it changes the starting address for bss. What I want
> is to change the end address of bss!
> 
> 
> For example this little (and useless) program won't compile:
> 
>   int array[500];
> 
>   int main()
>   {
>     return 0;
>   }
> 

You could try this

    int *array;
    array = (int *) 0x8000;

I haven't tried on this compiler but it would normally work
just about on any compiler with a linear 16 bits addressing.

Make sure you put a valid address.


-- 
Tired of Microsoft's rebootive multitasking?
then it's time to upgrade to Linux.
http://www.netonecom.net/~bbcat
We have all kinds of links
and many SuSE 7.0 Linux RPM packages



reply via email to

[Prev in Thread] Current Thread [Next in Thread]