> From: Grant Edwards
> Newsgroups: gmane.comp.hardware.texas-instruments.msp430.gcc.user
> Subject: Re: Wasted RAM between global vars
> Date: Mon, 2 Apr 2007 22:44:22 +0000 (UTC)
[]
> On 2007-04-02, Stokes, Mark <[email protected]> wrote:
>
>> I agree that the compiler needs fixing, however global arrays
>> have benefits that separate variables don't as I have
>> mentioned.
[]
>> Yes, I have programmed in Fortran, but not for 20 years.
>
> I haven't seen anybody do the array thing for almost 20 years.
> And it was in Fortran.

Just to note, that modern *big* desktops suffer almost the same
"RAM waste" problem (i.e. Linux/glibc systems):

http://udrepper.livejournal.com/10946.html

Note here an linear byte array vs array of pointers solution.

In DSO HOWTO there is a real life solution with automatic offset
calculation in C, but not in GCC. Some notes about compiller and GCC
is on the next page:

http://udrepper.livejournal.com/11056.html
____


Reply via email to