Afzal Hossain Khan
Junior Member level 1
Hi,
Recently I am working with avr studio 5 and I've completed my previous projects with win avr.I know these both use the same compiler which is GCC tool chain.But recently I've noticed a violent difference between them.
In case of saving data to ROM I use const unsigned char ****PGM[] PROGMEM="******************";
In that case avr studio keep this data in ROM as well as in ram.I mean after compiling I notice that both program and data memory size is changed . I think this data is treated as global variable to compiler.
But in case of win avr this data is only kept in ROM .
I'm totally confused.
Recently I am working with avr studio 5 and I've completed my previous projects with win avr.I know these both use the same compiler which is GCC tool chain.But recently I've noticed a violent difference between them.
In case of saving data to ROM I use const unsigned char ****PGM[] PROGMEM="******************";
In that case avr studio keep this data in ROM as well as in ram.I mean after compiling I notice that both program and data memory size is changed . I think this data is treated as global variable to compiler.
But in case of win avr this data is only kept in ROM .
I'm totally confused.