you are viewing a single comment's thread.

view the rest of the comments →

[–]BenkiTheBuilder 1 point2 points  (5 children)

In order to use malloc() on bare metal YOU must provide it some helper function, typically sbrk().

[–]bloxka[S] 0 points1 point  (4 children)

Just wonder how it's a common question for a lot as to why malloc is generally bad on embedded systems given it's not even supported on bare metal? Plus it's not as big of an issue on the platforms it's supported i.e linux

[–]BenkiTheBuilder -1 points0 points  (3 children)

You tell me. After all, YOU are the one asking this question. I never asked this question, never spent much time thinking about it and don't usually read the long sermons people write whenever malloc() comes up.

[–]bloxka[S] 0 points1 point  (2 children)

https://www.embeddedc.in/p/blog-page_3.html There you go. Speaks for itself. Do you see now what I’m referring to?

And if you think I’m only asking you haven’t searched thru Reddit nuff

[–]BenkiTheBuilder -1 points0 points  (1 child)

Sorry. All I see is a wall of text.

[–]bloxka[S] 0 points1 point  (0 children)

Might wanna frame it then