diff options
author | Jason Neal <jason.neal@astro.up.pt> | 2020-01-02 00:51:42 +1300 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-01-06 22:17:29 +1100 |
commit | aec88ddf0326187c567d4e4507149fb7c54ba91d (patch) | |
tree | 03a2a1d36fb893b213a327df53f88a941dfb88f1 /docs/reference/constrained.rst | |
parent | de78a9e317d3dd3654424ea70446dedbae9cce52 (diff) |
docs: More consistent capitalization and use of articles in headings.
See issue #3188.
Diffstat (limited to 'docs/reference/constrained.rst')
-rw-r--r-- | docs/reference/constrained.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/reference/constrained.rst b/docs/reference/constrained.rst index edac0ae68..9c68bab9a 100644 --- a/docs/reference/constrained.rst +++ b/docs/reference/constrained.rst @@ -1,6 +1,6 @@ .. _constrained: -MicroPython on Microcontrollers +MicroPython on microcontrollers =============================== MicroPython is designed to be capable of running on microcontrollers. These @@ -12,7 +12,7 @@ based on a variety of architectures, the methods presented are generic: in some cases it will be necessary to obtain detailed information from platform specific documentation. -Flash Memory +Flash memory ------------ On the Pyboard the simple way to address the limited capacity is to fit a micro @@ -58,7 +58,7 @@ heap fragmentation. In general terms it is best to minimise the repeated creation and destruction of objects. The reason for this is covered in the section covering the `heap`_. -Compilation Phase +Compilation phase ~~~~~~~~~~~~~~~~~ When a module is imported, MicroPython compiles the code to bytecode which is @@ -85,7 +85,7 @@ imported in the usual way. Alternatively some or all modules may be implemented as frozen bytecode: on most platforms this saves even more RAM as the bytecode is run directly from flash rather than being stored in RAM. -Execution Phase +Execution phase ~~~~~~~~~~~~~~~ There are a number of coding techniques for reducing RAM usage. @@ -292,7 +292,7 @@ The Q(xxx) lines should be gone. .. _heap: -The Heap +The heap -------- When a running program instantiates an object the necessary RAM is allocated @@ -391,7 +391,7 @@ Symbol Meaning Each letter represents a single block of memory, a block being 16 bytes. So each line of the heap dump represents 0x400 bytes or 1KiB of RAM. -Control of Garbage Collection +Control of garbage collection ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ A GC can be demanded at any time by issuing `gc.collect()`. It is advantageous @@ -420,7 +420,7 @@ initialisation the compiler may be starved of RAM when subsequent modules are imported. If modules do instantiate data on import then `gc.collect()` issued after the import will ameliorate the problem. -String Operations +String operations ----------------- MicroPython handles strings in an efficient manner and understanding this can |