3 ms·
Embedded C developers can produce very, ehum, 'interesting' code. They usually come from electronics engineering and think in terms of registers and memory inst
by Too 13y ago
Embedded C developers can produce very, ehum, 'interesting' code. They usually come from electronics engineering and think in terms of registers and memory instead of an abstract machine. I've seen code that actually relies on two arrays being defined in order and thus can be indexed from only the first array but with a calculated offset. This is outside of a struct...
Just type casting a struct to a char-pointer and dumping it straight out on the network or to persistent storage is code you see every day.