1. I have made code in IAR which I have attached.
2. I have made same debug & release optimization setting i.e High, Speed, No size constraint.
Surprisingly code generated in both are different even if optimization settings are same even if there is no additional code in debug or release.
3. Code is just:
4. Size in debug :
read only code memory = 106 bytes
read only data memory = 128 byte
read write data memory = 256 bytes
5. Size in release:
read only code memory = 63 bytes
read only data memory = 128 byte
read write data memory = 256 bytes
Questions:
1. Why different code size?
2. I didn't find any map file generated?
3. Is there not any zero initialized data in memory?
All vars declared go to read write memory?
e.g if I decalre uint8_t var; it goes to read write memory.
Even if I don't assign any value to it.
4. Is flash & ram size are below:
flash size = read only code memory+ read only data memory+read write data memory
ram size = read write data memory
2. I have made same debug & release optimization setting i.e High, Speed, No size constraint.
Surprisingly code generated in both are different even if optimization settings are same even if there is no additional code in debug or release.
3. Code is just:
Code:
#include "stm8s.h"
int main( void )
{
return 0;
}
4. Size in debug :
read only code memory = 106 bytes
read only data memory = 128 byte
read write data memory = 256 bytes
5. Size in release:
read only code memory = 63 bytes
read only data memory = 128 byte
read write data memory = 256 bytes
Questions:
1. Why different code size?
2. I didn't find any map file generated?
3. Is there not any zero initialized data in memory?
All vars declared go to read write memory?
e.g if I decalre uint8_t var; it goes to read write memory.
Even if I don't assign any value to it.
4. Is flash & ram size are below:
flash size = read only code memory+ read only data memory+read write data memory
ram size = read write data memory
Attachments
-
206.8 KB Views: 16