According to the table below - The Hello world requires 8.1kB of code size.
However...
When I compile I get 41k code size! YIKES!
void MainTask(void) {
GUI_Init();
GUI_DispString("Hello World!");
while(1) {
GUI_Delay(500);
}
}
Program Size: Code=41556 RO-data=3104 RW-data=204 ZI-data=10220
If I comment out the "GUI" function I get only 1k
void MainTask(void) {
//GUI_Init();
// GUI_DispString("Hello World!");
while(1) {
// GUI_Delay(500);
}
}
Program Size: Code=1132 RO-data=272 RW-data=8 ZI-data=2656
So, what am I doing wrong. I can't image a simple program like this requires 40K bytes. Any Idea...anyone?
Memory requirements of example applications
This section
shows the requirements of some example applications. The following table
contains the summary of the memory requirements:
Example GUI core Fonts Application Startup code Library Total GUI core Application Stack Total ROM RAM Hello world 5.9 kB 1.8 kB 38 B 300 B 0.1 kB 8.1 kB 62 B - 272 B 334 B Window application 43 kB 12.5 kB 2.7 kB 300 B 1.5 kB 60 kB 5.2 kB 40 B 1.4 kB 6.6 kB
However...
When I compile I get 41k code size! YIKES!
void MainTask(void) {
GUI_Init();
GUI_DispString("Hello World!");
while(1) {
GUI_Delay(500);
}
}
Program Size: Code=41556 RO-data=3104 RW-data=204 ZI-data=10220
If I comment out the "GUI" function I get only 1k
void MainTask(void) {
//GUI_Init();
// GUI_DispString("Hello World!");
while(1) {
// GUI_Delay(500);
}
}
Program Size: Code=1132 RO-data=272 RW-data=8 ZI-data=2656
So, what am I doing wrong. I can't image a simple program like this requires 40K bytes. Any Idea...anyone?
Memory requirements of example applications
This section
shows the requirements of some example applications. The following table
contains the summary of the memory requirements:
Example GUI core Fonts Application Startup code Library Total GUI core Application Stack Total ROM RAM Hello world 5.9 kB 1.8 kB 38 B 300 B 0.1 kB 8.1 kB 62 B - 272 B 334 B Window application 43 kB 12.5 kB 2.7 kB 300 B 1.5 kB 60 kB 5.2 kB 40 B 1.4 kB 6.6 kB