Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elf compiled in c++ #3

Open
smersh1307n2 opened this issue Oct 17, 2023 · 1 comment
Open

Elf compiled in c++ #3

smersh1307n2 opened this issue Oct 17, 2023 · 1 comment

Comments

@smersh1307n2
Copy link

Hello. Is it possible to use C++ to create an elf file using classes? All attempts to load the file were unsuccessful.

@espmaniac
Copy link
Owner

Hello, I would like to see the source code of the program you are trying to compile into an elf file. I guess you can't upload the file because of errors in the relocations.I don't have implemented the relocation types needed for c++ vtables. And I think it's a very bad idea to use classes and inheritance on a microcontroller, because it will take up a lot of space. But I think that before implementing relocation types for C++, we should first of all implement memory swap for microcontroller, you can use esp32 internal memory or sd-card as swap, it will be slow but you can load files of any size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants