Re: [avr-gcc-list] Confusing static method RAM usage.

2011-12-18 Thread Marcin S
There been some discoveries on this problem I want to share. My main development plaform is Linux, as I posted before im using gcc-4.5.3 there. Out of curiosity I've installed WinAVR package on windows, built my project and everything was ok with memory(!), means, RAM was not bloated by using meth

Re: [avr-gcc-list] Confusing static method RAM usage.

2011-12-17 Thread Georg-Johann Lay
Marcin S schrieb: I never said this code does not compile. It's text in square brackets. It describes the snipped-out text rather then quoting all that lines. using avr-gcc-4.5.3 build opts are: avr-gcc -c -mmcu=atmega128 -x c++ -gdwarf-2 -DF_CPU=3686400UL -Os -funsigned-char -funsigned-bi

Re: [avr-gcc-list] Confusing static method RAM usage.

2011-12-17 Thread Marcin S
I never said this code does not compile. > 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.

Re: [avr-gcc-list] Confusing static method RAM usage.

2011-12-17 Thread Georg-Johann Lay
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 co

[avr-gcc-list] Confusing static method RAM usage.

2011-12-17 Thread Marcin S
Hello, I'm trying to figure out what's wrong with this code, I have this STATIC method in PanelPellet class CNapisy::TTextId PanelPellet::getStateString(uint16_t state) { switch (state) { case ST_PRACA_RECZNA: return CNapisy::IDT_TEXT_PRACA_R