Skip to main content
Arduino

Timeline for Arduino String memory allocation

Current License: CC BY-SA 3.0

13 events
when toggle format what by license comment
Mar 15, 2020 at 21:00 history tweeted twitter.com/StackArduino/status/1239295422092492800
Mar 15, 2020 at 18:57 answer added tylerl timeline score: 4
Mar 18, 2017 at 5:17 vote accept goddland_16
Mar 15, 2017 at 13:47 history edited goddland_16 CC BY-SA 3.0
added 11 characters in body
Mar 15, 2017 at 7:21 comment added goddland_16 @EdgarBonet @Mikael@Michel Please see the modified
Mar 15, 2017 at 7:19 history edited goddland_16 CC BY-SA 3.0
added 183 characters in body
Mar 14, 2017 at 17:26 answer added Mikael Patel timeline score: 4
Mar 14, 2017 at 17:24 comment added Edgar Bonet The string object may reside in the function's stack, in the caller's stack, or in CPU registers. That's a matter of compiler optimization. For a simplified mental picture, you may assume it's in the function's stack. Everything should work "as if" that's the case.
Mar 14, 2017 at 13:06 comment added goddland_16 @EdgarBonet you mean to say that string object will reside in stack and the char data reference will stay in heap? Pardon for misunderstanding in previous comment.
Mar 14, 2017 at 12:28 answer added Michel Keijzers timeline score: 1
Mar 14, 2017 at 12:10 comment added goddland_16 It compiled fine and showed the output too. What's wrong with that?
Mar 14, 2017 at 12:07 comment added Edgar Bonet There is the String object, and then there is the character data referenced by that object. They don't live together.
Mar 14, 2017 at 12:02 history asked goddland_16 CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /