Hello World Memory Req.

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Hello World Memory Req.

    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
  • I have the LPCopen version. I can edit the

    GUICONF.h which has switches. Is this what you are referring to? I have almost everything turned off. When you compile this code, what is your code size?

    /*********************************************************************
    *
    * Multi layer/display support
    */
    #define GUI_NUM_LAYERS (1) // Maximum number of available layers

    /*********************************************************************
    *
    * Multi tasking support
    */
    #define GUI_OS (0) // Compile with multitasking support

    /*********************************************************************
    *
    * Configuration of available packages
    */
    #ifndef GUI_SUPPORT_TOUCH
    #define GUI_SUPPORT_TOUCH (0) // Support touchscreen
    #endif
    #define GUI_SUPPORT_MOUSE (0) // Support a mouse
    #define GUI_SUPPORT_UNICODE (1) // Support mixed ASCII/UNICODE strings
    #define GUI_WINSUPPORT (0) // Window manager package available
    #define GUI_SUPPORT_MEMDEV (0) // Memory devices available
    #define GUI_SUPPORT_AA (0) // Anti aliasing available
    #define WM_SUPPORT_STATIC_MEMDEV (0) // Static memory devices available

    /*********************************************************************