Merge pull request #4030 from jeromecoutant/PR_IAR_SMALL_HEAP

[STM32L0] reduce IAR heap and stack size for small targets
pull/4128/head
Sam Grove 2017-04-06 08:49:02 -05:00 committed by GitHub
commit 58f4b4103f
3 changed files with 6 additions and 6 deletions

View File

@ -15,8 +15,8 @@ define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__]
define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__]; define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
/* Stack and Heap */ /* Stack and Heap */
define symbol __size_cstack__ = 0x500; define symbol __size_cstack__ = 0x400;
define symbol __size_heap__ = 0x1000; define symbol __size_heap__ = 0x800;
define block CSTACK with alignment = 8, size = __size_cstack__ { }; define block CSTACK with alignment = 8, size = __size_cstack__ { };
define block HEAP with alignment = 8, size = __size_heap__ { }; define block HEAP with alignment = 8, size = __size_heap__ { };
define block STACKHEAP with fixed order { block HEAP, block CSTACK }; define block STACKHEAP with fixed order { block HEAP, block CSTACK };

View File

@ -15,8 +15,8 @@ define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__]
define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__]; define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
/* Stack and Heap */ /* Stack and Heap */
define symbol __size_cstack__ = 0x500; define symbol __size_cstack__ = 0x400;
define symbol __size_heap__ = 0x1000; define symbol __size_heap__ = 0x800;
define block CSTACK with alignment = 8, size = __size_cstack__ { }; define block CSTACK with alignment = 8, size = __size_cstack__ { };
define block HEAP with alignment = 8, size = __size_heap__ { }; define block HEAP with alignment = 8, size = __size_heap__ { };
define block STACKHEAP with fixed order { block HEAP, block CSTACK }; define block STACKHEAP with fixed order { block HEAP, block CSTACK };

View File

@ -15,8 +15,8 @@ define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__]
define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__]; define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
/* Stack and Heap */ /* Stack and Heap */
define symbol __size_cstack__ = 0x500; define symbol __size_cstack__ = 0x400;
define symbol __size_heap__ = 0x1000; define symbol __size_heap__ = 0x800;
define block CSTACK with alignment = 8, size = __size_cstack__ { }; define block CSTACK with alignment = 8, size = __size_cstack__ { };
define block HEAP with alignment = 8, size = __size_heap__ { }; define block HEAP with alignment = 8, size = __size_heap__ { };
define block STACKHEAP with fixed order { block HEAP, block CSTACK }; define block STACKHEAP with fixed order { block HEAP, block CSTACK };