Skip to content

Commit dbf238f

Browse files
author
Renat0Ribeir0
committed
added IDE message to article
1 parent d4d4521 commit dbf238f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

content/Software and Downloads/Compilation/The-IDE-prints-a-message-about-sketch-size-and-memory-usage.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
title: "The IDE prints a message about sketch size and memory usage"
33
---
44

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

7-
![IDE storage space and memory usage printed in the console](img/IDE_storage_and_memory_console.png)
7+
```
8+
Sketch uses 4316 bytes (15%) of program storage space. Maximum is 28672 bytes.
9+
Global variables use 153 bytes (5%) of dynamic memory, leaving 2407 bytes for local variables. Maximum is 2560 bytes.
10+
```
11+
* In this case, both values are **below** 100% and you don't need to do anything.
812

9-
* If both values are **below** 100%, you don't need to do anything.
10-
11-
* 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](https://support.arduino.cc/hc/en-us/articles/360013825179-Reduce-the-size-and-memory-usage-of-your-sketch) for more information.
13+
* 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](https://support.arduino.cc/hc/en-us/articles/360013825179-Reduce-the-size-and-memory-usage-of-your-sketch) for more information.

0 commit comments

Comments
 (0)