|
|
Subscribe / Log in / New account

shared memory and loading savings

shared memory and loading savings

Posted Jan 31, 2025 21:57 UTC (Fri) by mb (subscriber, #50428)
In reply to: shared memory and loading savings by excors
Parent article: Vendoring Go packages by default in Fedora

>When you're trying to strictly limit stack usage, I'm not sure Rust is a good fit

As I said.
128 bytes RAM total work just fine.
This is what actually works in real life.

>something simple like assigning to a static struct

Assigning to a static struct is not simple. Neither in C nor in Rust.
But anyway, it has to grow *much* larger than anything possible with 128 bytes of RAM to become a memcpy problem.
I have seen this problem with multi-megabyte ESP32. And then the solution is just to use heap allocation. Which is not a real problem on ESP32.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds