I want to create an operating system with a graphical user interface using an ILI9431 TFT screen.
Currently I'm waiting for the TFT screen and other components to arrive so I'm playing around with LED's and core features such as something like a BIOS and Kernel which handles the hardware communication and essential low level OS functions.
I'm new to C++ but i know how basic memory allocation works and I'm aware of the dangers what can happen even with proper memory management when creating and freeing many objects on a small SRAM. Is this such a big kind of a deal that I should consider avoid working object oriented or is there a way to make it right?
The only way I know how to create and free an object is this:
SomeClass* obj = new SomeClass():
delete(obj);
When looking over the webs I see many people saying that this is bad and I understand why. I heard of smart pointers, are they working properly on arduino? If yeah, where can I find the classes?