Skip to main content
Explorer
March 7, 2024
Solved

Memory usage, stm8

  • March 7, 2024
  • 2 replies
  • 2749 views

Hello

STM8S microcontroller. Cosmic compiler. How can I find out how much memory my C program is using and for what purposes?

    This topic has been closed for replies.
    Best answer by MykolaLevun

    I wrote to Cosmic technical support and they responded with the following: "It's described in the linker section of the compiler manual (CXSTM8_UsersGuide.pdf)."

    2 replies

    Graduate II
    March 7, 2024

    If the Linker generates a .MAP file perhaps review that.

    Explorer
    March 7, 2024

    Yes, the linker generates a .map file. It is not particularly clear what these segments mean (see Figure 1 below)?

    MykolaLevun_0-1709812874037.png

    What do the numbers near the parentheses and in the parentheses mean? What do the arrows (>) next to some numbers mean (see Figure 2 bellow)?

    MykolaLevun_1-1709813056234.png

    What do the arrows such (>) and such (-->) mean (see Figure 3 bellow)?

    MykolaLevun_2-1709813186974.png

     

    Is there information on this topic somewhere? I did not find it in the Cosmic compiler documentation.

    Super User
    March 7, 2024

    @MykolaLevun wrote:

    I did not find it in the Cosmic compiler documentation.


    Did you try https://www.cosmicsoftware.com/support.php ?

    or https://www.cosmicsoftware.com/contact.php ?

    MykolaLevunAuthorAnswer
    Explorer
    March 17, 2024

    I wrote to Cosmic technical support and they responded with the following: "It's described in the linker section of the compiler manual (CXSTM8_UsersGuide.pdf)."