C is simply better
I converted my c++ uart driver to C. This is because the l4 loader uses the C library to print progress, (printfs, __putchar etc.) which in turn uses some uart functions (obviously written in C in a C library). My c++ driver wouldn't fit there, so converted the code. It wasn't a big deal.
I think especially for system programming C is quite sufficient. The complexity tradeoff that C++ brings is simply not worth the benefits of the language. Maybe in app-space it makes a difference but I guess not for system programming.
Tomorrow I'll add the C uart driver to the bare-metal C library and try loading the kernel again...
I think especially for system programming C is quite sufficient. The complexity tradeoff that C++ brings is simply not worth the benefits of the language. Maybe in app-space it makes a difference but I guess not for system programming.
Tomorrow I'll add the C uart driver to the bare-metal C library and try loading the kernel again...
0 Comments:
Post a Comment
<< Home