• 0 Posts
  • 20 Comments
Joined 1 year ago
cake
Cake day: November 9th, 2023

help-circle





  • I dabbled with making a fairly complex program for a microcontroller the other day and quickly hit the stack limit for a simple object.

    It wasn’t so much that it was a large object, but to provide flexibility I was amazed how fast I filled the memory.

    I’ve done heaps with memory managed languages in the past but shit as soon as I had to think about what I was doing under the hood everything got hard af.

    So serious question - does anyone have any good resources for a competent programmer, but with no clue whatsoever how to manage memory in a microcontroller space and avoid fragmentation etc?

    I got it to work but I’m sure I did shit job and want to be better at it.