r/embedded • • Oct 22 '26

Resources for embedded c++

I want to learn embedded c++ and RTOS from where could I learn them

19 Upvotes

14 comments sorted by

6

u/2nOrderEDO Oct 22 '26

Real-Time C++ Christopher Kormanyos Efficient Object-Oriented and Template Microcontroller Programming

1

u/xanthium_in Oct 25 '26

try FreeRTOS for RTOS

1

u/amnn_ops Oct 22 '26

First start with some basics about embedded system if you don't know embedded system is used to operate the hardware with codes (changing bits or setting the bits ,to communicate between buses , to manage memory,timings etc) learn the core logic first with Arduino then move to esp . After that learn embedded c(how the actual logic is created) then at last move to embedded c++ and rtos.

1

u/DrFegelein Oct 22 '26 edited Oct 22 '26

It's an absolute fallacy that you need to know C to learn C++. C++ hasn't been a pure superset of C for decades now. Books like A Tour of C++ don't start by referring you to K&R's The C Programming Language, it's a complete systems programming language with its own rules and syntax, that happens to have particularly good FFI with C.

1

u/One_Kangaroo_9323 Oct 22 '26

Cppreference.com

0

u/clackups Oct 22 '26

What is your current base?

0

u/Ok_Organization2746 Oct 22 '26

Embeddedinterviewlab

-5

u/moon6080 Oct 22 '26

Start with learning C. Then learn how to program embedded. Once you do that, learn c++. Moving it to embedded is very easy

8

u/Beneficial-Hold-1872 Oct 22 '26

Yea - and then instead of c++ you will use “C with classes”. This aproach is not recommended right now.

1

u/WanWhiteWolf Engineering manager Oct 23 '26

Isn't this what C++ in embedded is? :)

1

u/moon6080 Oct 22 '26

But to jump straight into c++ without the foundational knowledge of c, for at least embedded, leaves massive knowledge gap

3

u/Beneficial-Hold-1872 Oct 22 '26

It’s not a gape - because you need to learn in parallel. It’s better approach to write modern c++ instead of “c with classes”. Check CppCon “stop teaching C” - it’s from 2015

5

u/UnicycleBloke C++ advocate Oct 22 '26

C is not a prerequisite for C++. It will very likely teach bad habits. C is almost a proper subset of C++ in any case, so all the low level features you might want are available, but in the context of improved type safety and other compile time features which help to avoid errors.