|
|
|
|
|
by rurban
240 days ago
|
|
I once tried to get a IAR C++ embedded codebase to compile with g++ and it's stdlib on a very small chip. It eventually compiled but never worked. I'll have to rewrite it in C instead. There were many hacks, like filling the stack with sentinels to detect it at run-time. The linker script was horrible. Rewrote everything from scratch.
The resulting code was many KB too large for the available space, it would have needed to slim down the stdlib. Even with the much better optimizations and LTO it was still too big. Nice for that time, but essentially unusable. The company needed 10 years for that code, my plan is to rewrite it in 2 weeks. |
|