Skip to content

Commit 5f51484

Browse files
author
Amanda Butler
authored
Fix voice in memory_intro.md
Fix passive voice I missed earlier.
1 parent fd7a1b4 commit 5f51484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/optimize/memory/memory_intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To disable error logging to serial output, set the `NDEBUG` macro and the follow
5050

5151
You can also take advantage of the fact that these programs only run on embedded targets. When you run a C++ application on a desktop computer, the operating system constructs every global C++ object before calling `main`. It also registers a handle to destroy these objects when the program ends. The code the compiler injects has some implications for the application:
5252

53-
* The code injected by the compiler consumes memory.
53+
* The code that the compiler injects consumes memory.
5454
* It implies dynamic memory allocation and thus requires the binary to include `malloc`, even when the application does not use it.
5555

5656
When you run an application on an embedded device, you don't need handlers to destroy objects when the program exits, because the application will never end. You can save more RAM and flash memory usage by [removing destructor registration](https://github.com/ARMmbed/mbed-os/pull/2745) on application startup and by eliminating the code to destruct objects when the operating system calls `exit()` at runtime.

0 commit comments

Comments
 (0)