diff options
| author | danicampora | 2015-03-02 14:11:02 +0100 |
|---|---|---|
| committer | danicampora | 2015-03-11 16:59:29 +0100 |
| commit | 26cbc91373cdfff43317da01e102617ed5885655 (patch) | |
| tree | 21291ed917e4452d0712de1d270b1eb2f60a24ff /cc3200/application.lds | |
| parent | 02fda44a30d114dbcead18df44c3ec3aefec61cd (diff) | |
cc3200: Place functions only used while booting in a special section.
Such functions are never used after MicroPython has started, and they
remain in RAM wasting space. Now they are placed in a special section
named "boot" which sits just before the heap, allowing us to extend
the effective heap area up to the new boot section. Right now, this
gives us back ~1K, but in the future, more functions might end up in
there as well.
Diffstat (limited to 'cc3200/application.lds')
| -rw-r--r-- | cc3200/application.lds | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cc3200/application.lds b/cc3200/application.lds index 147941f4c..162988da9 100644 --- a/cc3200/application.lds +++ b/cc3200/application.lds @@ -89,6 +89,17 @@ SECTIONS . = ALIGN(8); _ebss = .; } > SRAM + + /* place here functions that are only called during boot up, */ + /* that way, we can re-use this area for the micropython heap */ + .boot : + { + . = ALIGN(8); + _boot = .; + *(.boot*) + . = ALIGN(8); + _eboot = .; + } > SRAM /* allocate the micropython heap */ .heap : |
