|
|
|
|
|
by inferiorhuman
957 days ago
|
|
You definitely can use rust in an embedded space. I rather liked having traits and proper types instead of a giant mess of integer constants. In general I think a lot of the so-called bloat you see with Rust binaries is due to a combination of not using a shared standard library and generics – the former is a non-issue in an embedded context and the latter is well under your control. Sure, ELF includes a lot of fluff but you're not deploying ELF on a microcontroller. |
|
I was mostly trying to figure a 1:1 comparison. For example, If I write a Feature Control module in c and in rust, using the same design, are outputs similar?
seems like either no one has a good sense of that comparison, or it's a bad comparison and I don't understand why.
What I'm trying to avoid is having a space-saving task be "rewrite rust module X in c to save code memory"