With the 1611 (i was using the wrong mmcu)
The result, it's the same.

As Cristopher explains me what go in the .bss.
A curious thing, in the case of the rs274ngc, if i initialize some
variables (large structs), the .data section grows beyond expectations

   text    data     bss     dec     hex filename
    626      18       0     644     284 canon_stand_alone.o
   4366       0       0    4366    110e driver.o
     54       6       0      60      3c file.o
     90       0       0      90      5a math.o
  28990   27166       0   56156    db5c rs274ngc.o

for the rs274ngc
before data + bss = 3766
after data + bss = 27166 (26.5 KB aprox)

Why?


On 02/02/06, mspgcc-users-requ...@lists.sourceforge.net > If i run
msp430-size over the binaries, the sum of sizes for .bss is
> 62. May be i'm not reading it right...
>
> ADMRED-25459# msp430-size *.o
>    text    data     bss     dec     hex filename
>     626       6      12     644     284 canon_stand_alone.o
>    4366       0       0    4366    110e driver.o
>      54       6       0      60      3c file.o
>      90       0       0      90      5a math.o
>   28990    3716      50   32756    7ff4 rs274ngc.o
> ADMRED-25459#
>
>
> --__--__--
>
> Message: 2
> From: Dmitry <di...@spec.ru>
> Organization: spec
> To: mspgcc-users@lists.sourceforge.net
> Subject: Re: [Mspgcc-users] [.bss and other questions]
> Date: Wed, 1 Feb 2006 22:35:47 +0300
> Reply-To: mspgcc-users@lists.sourceforge.net
>
>
> > > ADMRED-25459# msp430-size *.o
> > >    text    data     bss     dec     hex filename
> > >     626       6      12     644     284 canon_stand_alone.o
> > >    4366       0       0    4366    110e driver.o
> > >      54       6       0      60      3c file.o
> > >      90       0       0      90      5a math.o
> > >   28990    3716      50   32756    7ff4 rs274ngc.o
>
> There are '.data' section overload in rs274ngc.? file.
> RAM requirements can be computed as size of .bss plus size of .data
> I see you need 3716 + 50 + 12 + 6 = 3784 bytes + ,may be, some align pads.
> This is too much for 1612...
>
> Check if some data can be declared as constant...
>
> cheers,
> ~d
>
>
>
> --__--__--
>
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
>
> End of Mspgcc-users Digest
>

Reply via email to