A hex file for 8K will be more than twice as large. 2 characters per byte plus some address and checksum characters each line.
If you are using Atmel Studio, it will tell you if the code fits the specified MCU.
Jim
On Jun 20, 2013, at 7:24 AM, SHAFEEQUL ISLAM wrote:
> Can any one please help me regarding Atmega8 Flash size.I dont know that the size of flash 8Kb is the amount we can burn the *.hex file or it is memory size of variables that we have used in our code?For e.g if i burned a hex file of size 1 Kb,then it will occupy space of 1 Kb in flash?Secondly my code of 1 Kb have varibles of total size 100 bytes,then flash will be out with 100byte memory?
> Tell me which case is true or if there is any other way of memory allocation,then do let me know about that ishall be highly obliged.I'm new to Atmega8.
>
> [Non-text portions of this message have been removed]
>
>
[Non-text portions of this message have been removed]