Skip to content

Files

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Latest commit

6114365 · Sep 21, 2022

History

History
15 lines (11 loc) · 848 Bytes

The-IDE-prints-a-message-about-sketch-size-and-memory-usage.md

File metadata and controls

15 lines (11 loc) · 848 Bytes
title id
The IDE prints a message about sketch size and memory usage
4405339237522

The IDE always checks for storage space and dynamic memory usage when compiling your code, and then prints the results to the console. For example:

Sketch uses 4316 bytes (15%) of program storage space. Maximum is 28672 bytes.
Global variables use 153 bytes (5%) of dynamic memory, leaving 2407 bytes for local variables. Maximum is 2560 bytes.
  • In this case, both values are below 100% and you don't need to do anything.

  • But, if either storage space or dynamic memory usage is above 100%, you have to free up storage space or optimize your code. See Reduce the size and memory usage of your sketch for more information.