« Return to Thread: Confusing static method RAM usage.

Re: Confusing static method RAM usage.

by Georg-Johann Lay-2 :: Rate this Message:

| View in Thread

Marcin S wrote:
> Hello,
> I'm trying to figure out what's wrong with this code, I have this
>
> [bunch of code that does not compile]
>
> When I use this method in my program then according to avr-size, RAM
> memory usage jumps by 168 bytes! Why?

There may be all sorts of explanation for that.

Without code that can be compiled, without compiler version and compiler
options it's just guessing around.

As we have no code that compiles (noone has PanelPellet, CNapisy, ST_OFF
...) look at the genrated code and what takes the additional RAM.

> I thought this should not take  any RAM until execution, am I right?

Obviously, not.  You tried -fno-tree-switch-conversion?


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

 « Return to Thread: Confusing static method RAM usage.