r/shittyprogramming • • Jun 28 '15

Embedded developer adventures

Post image
297 Upvotes

55 comments sorted by

View all comments

5

u/Bubumeister Jun 28 '15

You need to add code in the header if you work with templates (if I recall correctly)

5

u/SnowdensOfYesteryear Jun 28 '15 edited Jun 28 '15

> embedded

> c++

1

u/fb39ca4 Jun 29 '15

Eh, ARM is found on a lot of embedded platforms, and you can definitely write C++ for that.

2

u/SnowdensOfYesteryear Jun 29 '15

You can with pretty much any compiled languages without a runtime, but no one really bothers to.

1

u/[deleted] Jul 17 '15

The fear is that people don't know enough about C++ and its implications in embedded. You'd be (hopefully) surprised how often you find print fin an embedded system, and sometimes even in a critical section.

1

u/fb39ca4 Jul 17 '15

Yep. The drawback of C++ is it provides a lot of tools which are not suitable for embedded programs. But if you use the right parts of the language, you can generate code that is much more readable than pure C and will perform just as well.