Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
The OOP programming is a bit heavy and far from the machine, but You are working on an platform that has power.
I believe that if you wish to do something that has to process data RealTime or has big need for Computer Power to do it without OOP, else you have nothing to lose...
It depends on the size of your program, C++ usually uses more memory. It was designed to handle very large scale programs.
If your program is 10,000 lines of code or less, then C would be a good choice.
java is not suitable for embedded developmen t unless there is no optimzed VM
or java bytecode enabled chip .
But again it is dependent on your platform .
As example embedded platfrom using Java -
Java enabled mobile phones . But remember they are mostly imeplemented using ARM
with MBytes of RAM and running for 50-300
MIPS processor capasity .
Using C++ programming for embedded systems requires a big size of ROM and RAM memory, and if you want to use Java it requires a fast uC too. But nowadays is common to use as embedded system a device with some MB of RAM and ROM so it is possible to use this high level programming.
Anyway I have to say that OOP is not only a language, it is a design concept. It is possible to do a OO design and aply it programming estandard C with structures and function pointers.
I think that using C++ for compiled OOP characteristics may help in the development of the software, which always needs to be changed.
If you do not use polimorphism, virtual functions and runtime binding you can make a project with an object oriented filosophy that will help you in the future.
C++ does not take so much more memory and time than C if you take those restrictions.
The book Programming Embedded Systems in C and C++ by Michael Barr explains what I mentioned here.
Hi
The oop is not just only C++ or java, is the way of how you develop your proyect, how you could implement the functions, order or merge your files into different forlders,the comments have you made, the way that your organize the data. Thinking in this way didn´t matter the languaje that you could use, it would be ASM,C,PASCAL,BASIC, C++ or JAVA For me it is important found an powerfull editor, that it could show you the relationship among the funtion, datas and other usefull formation, it would help you to organize it and follow him throw the time.
I hope this help you
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.