I completely agree with Ron (Ron, don't say that I in some cases do not agree with you ;-] ).
My ad-hoc very rough estimations will be that you'll shrink around 30/40% of code, but introducing two (virtual) levels of abstraction with (about) three levels of inheritance for real classes will slow down boot time for at least 30%.
Not to mention effort to do this. Not even worth thinking... The rule of thumb is that system SW is written in low level languages (ASM, C).
Let us leave C++ to application guys. ;-)
Zoran
On Sat, Jan 28, 2017 at 5:59 PM, ron minnich rminnich@gmail.com wrote:
On Sat, Jan 28, 2017 at 6:14 AM Philipp Stanner stanner@posteo.de wrote:
Could coreboot (or parts of it) be written in C++?
I hope not.
What would be the advantages and disadvantages?
I can't think of a single one, and I see a lot of C++.
Note that there are parts of coreboot written in Ada. I don't like Ada that much, but it's a better language for safe software than C++.
ron
-- coreboot mailing list: coreboot@coreboot.org https://www.coreboot.org/mailman/listinfo/coreboot