C for embedded controllers

Bruce Bowling bowling at cebaf.gov
Mon Nov 27 18:53:40 GMT 1995


I am surprised there is not a war between C and C++, instead of
assembler vs. C.  

I will start one........

I have been using C++ on a major project (a accelerator simulation)
for the last year, and my conclusion is that C++ is 
useful if the problem you are working on can be easily
represented by objects.  Otherwise, use C.  It seems that everyone 
jumping on the C++ bandwagon is programming EVERYTHING using the
object-oriented approach, instead of using the technique best
suited for the project.  Sort of like the neural-network bandwagon
several years ago - people touted them as a great discovery
and predicted the world would change using them.  

Using C++ on an embedded processor code, with virtual functions
and the like, could lead to suicide (yours).

- Bruce

--
-----------------------------------------------------
<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-----------------------------------------------------
               Bruce A. Bowling
  Staff Scientist - Instrumentation and Controls
 The Continuous Electron Beam Accelerator Facility
    12000 Jefferson Ave - Newport News, VA 23602
                 (804) 249-7240
                bowling at cebaf.gov  
        http://devserve.cebaf.gov/~bowling
-----------------------------------------------------
<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-----------------------------------------------------



More information about the Diy_efi mailing list