-
Notifications
You must be signed in to change notification settings - Fork 677
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
C or C++ #173
Comments
I think using C++ compiler for more optimised code generation was the reason. People say there are many benefits using C++. For embed systems people say its better with C. IMHO, complexity management is important and with C, it could become a nightmare. BTW, for as RPi, this is what I got.
I tried with JerryScript only but could not solve plugin compile/link problem in short time.
|
My experiences usually the other way: it is true that C forces you to handle complexity, and the best way to handle complexity is defining simple rules you follow. That is why C programs are so small and efficient. With C++, templates and operator overloading can generate huge amount of code. And classes are an excellent way to loose control of complexity. Anyway, I am just working on built-ins so whatever you prefer is good for me. I just want to know the available language features when writing new code. |
We discussed this question last time, but there was no clear decision. Today this question is raised again, since the PI default compiler is only GCC 4.7. We might also need to support exotic architectures, where we stuck with proprietary compilers, and they might not even support C++.
I think postponing this question is not wise, since we might reach a point, where there is no turning back. It would be great to have a decision about the minimum compiler requirements. My personal preference is C99, but anything is good for me. Just lets have a decision.
The text was updated successfully, but these errors were encountered: