| Deep C Dives: Static Storage |
| Written by Mike James | |||||||
| Tuesday, 20 May 2025 | |||||||
Page 3 of 3
Static v HeapIf you know about heap storage, see Dive 12, then you might be thinking that as static is easier to use than heap storage, why not use it in preference. The advantage of static storage is that no pointers are involved in its creation or management. Its disadvantage is that it isn’t possible to manage it at all. Heap storage can be freed and resized whereas static storage is fixed. Using static storage can also add to the size of the program file. Static storage and file-level storage is most easily implemented by being compiled into the program and how efficiently this is encoded in the source file varies, but it is possible that if you declare a 1MByte static array the size of your executable increases by 1MByte. This also increases the time it takes to load your program.
Deep C Dives
|
Apache NetBeans 29 Improves Gradle Support 05/12/2025 Apache NetBeans 28 has been released with improvements to Gradle 9 support, better handling of the Maven UI, and expanded JUnit integration. |
State of the Octoverse 2025 26/11/2025 GitHub saw tremendous growth in 2025 with more than one new developer on average joining GitHub every second - over 36 million in the past year, bring the total for the GitHub community to over 1 [ ... ] |
More News
|
Comments
or email your comment to: comments@i-programmer.info


