Hardware/ARMEBS/4/Sections
(Difference between revisions)
(Created page with "{{public}} {{TOC right}} Standard C sections") |
|||
Line 1: | Line 1: | ||
{{public}} | {{public}} | ||
{{TOC right}} | {{TOC right}} | ||
− | [[Languages/C/Sections| | + | At the end of build the eclipse will show memory usage as this |
+ | <pre> | ||
+ | arm-none-eabi-size X | ||
+ | text data bss dec hex filename | ||
+ | 8292 1132 2488 11912 2e88 leds | ||
+ | </pre> | ||
+ | Please have a look at [[Languages/C/Sections|standard C sections]]. | ||
+ | |||
+ | text, data, bss, and dec are decimal | ||
+ | |||
+ | hex, is hexadecimal | ||
+ | |||
+ | * '''text''' includes the sections <code>.text</code> and <code>.isr_vector</code> (<code>.text</code> includes <code>.rodata</code>) | ||
+ | * '''data''' includes the <code>.data section</code> | ||
+ | * '''bss''' includes <code>.bss</code>, <code>._stack</code>, <code>._user_heap</code> sections |
Revision as of 14:41, 11 July 2014
At the end of build the eclipse will show memory usage as this
arm-none-eabi-size X text data bss dec hex filename 8292 1132 2488 11912 2e88 leds
Please have a look at standard C sections.
text, data, bss, and dec are decimal
hex, is hexadecimal
- text includes the sections
.text
and.isr_vector
(.text
includes.rodata
) - data includes the
.data section
- bss includes
.bss
,._stack
,._user_heap
sections