diff options
| author | Jeff Epler <jepler@unpythonic.net> | 2025-09-21 09:53:27 -0500 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-09-26 14:38:08 +1000 |
| commit | adf63198849caa8c660249782caa368589ef7916 (patch) | |
| tree | 88d48e93def6507d7a9a9384b6b9b6c2cdd30edd /docs/develop | |
| parent | 1921d22b35cb241eff5aa923325c53efbedf1dc2 (diff) | |
docs/develop/gettingstarted: Document %.sz and %.pp targets.
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
Diffstat (limited to 'docs/develop')
| -rw-r--r-- | docs/develop/gettingstarted.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/develop/gettingstarted.rst b/docs/develop/gettingstarted.rst index 039be881e..cb479458e 100644 --- a/docs/develop/gettingstarted.rst +++ b/docs/develop/gettingstarted.rst @@ -285,6 +285,21 @@ See also :ref:`writingtests`. Additional make targets for developers -------------------------------------- +In all ``make``-based ports, there is a target to print the size of a specific object file. +When a change is confined to a single file, this is useful when testing variations to find smaller alternatives. + +For instance, to print the size of ``objstr.o`` in the ``py/`` directory when making a unix standard build: + +.. code-block:: bash + + $ make build-standard/py/objstr.sz + +Similarly, there is a target to save the preprocessed version of a file: + +.. code-block:: bash + + $ make build-standard/py/objstr.pp + In ``ports/unix`` there are additional targets related to running tests: .. code-block:: bash |
