Welcome to EDAboard.com

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.

Register Log in

Is OOP suitable for embedded system ?

Status
Not open for further replies.

weeyndha

Advanced Member level 4
Joined
Dec 12, 2002
Messages
103
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
607
Hi All,

I need opinion on OOP (Java or C++) for embedded system. Is it suitable ?

Regards,
 

Analyzer

Full Member level 6
Joined
Nov 18, 2001
Messages
374
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
3,518
Hi,

Which embedded system are you mentioning about? Can you detailize it please?

Analyzer.
 

mYthorON

Member level 4
Joined
Dec 19, 2002
Messages
70
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
409
Analyzer said:
Hi,

Which embedded system are you mentioning about? Can you detailize it please?

Analyzer.
I am using ARM+WinCE. Can you give me some advice?
 

Drm

Newbie level 1
Joined
Apr 8, 2003
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Herakleion / Crete / Hellas
Activity points
10
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...
 

Analyzer

Full Member level 6
Joined
Nov 18, 2001
Messages
374
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
3,518
Try to search WSDL Compiler and ms wince oop programming. ;) (Sure, it is suitable)

Analyzer.
 

se7en

Member level 2
Joined
Dec 10, 2002
Messages
44
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
195
garbage collection could be malicious..be aware of it
 

btbass

Advanced Member level 5
Joined
Jul 20, 2001
Messages
1,897
Helped
438
Reputation
880
Reaction score
287
Trophy points
1,363
Location
Oberon
Activity points
12,861
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.
 

artem

Advanced Member level 4
Joined
May 22, 2003
Messages
1,350
Helped
126
Reputation
252
Reaction score
32
Trophy points
1,328
Location
Turkey
Activity points
13,461
selection for language is solely dependent on your platform .
To be able to make right choise you should estimate RAM , ROM and MCU type .

C++ overhead is intruduced by its features .
There is no one to one correspondence between asm code got from c++ .
 

artem

Advanced Member level 4
Joined
May 22, 2003
Messages
1,350
Helped
126
Reputation
252
Reaction score
32
Trophy points
1,328
Location
Turkey
Activity points
13,461
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 .
 

artem

Advanced Member level 4
Joined
May 22, 2003
Messages
1,350
Helped
126
Reputation
252
Reaction score
32
Trophy points
1,328
Location
Turkey
Activity points
13,461
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 .
 

Ohh

Member level 2
Joined
May 31, 2001
Messages
50
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
440
I think, it depends upon the size or complexity of the applications and the performance or capacity of the target platform.
 

leon

Junior Member level 1
Joined
May 20, 2003
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
430
Currently, C is still the main-stream language used in embed system.
Not the OOP.
Because the OOP has so much overhead than pure C.
 

ramesh

Advanced Member level 1
Joined
Jan 19, 2003
Messages
424
Helped
14
Reputation
28
Reaction score
14
Trophy points
1,298
Activity points
2,947
Analog Devices Visual DSP++ supports C++ for their Digital Signal Processors for embedded systems development.
 

katos

Junior Member level 3
Joined
May 6, 2003
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
282
Hi,

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.

Katos
 

thaweesakwac

Newbie level 2
Joined
May 24, 2003
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
38
Amm ....... useful information to me ....

/ Warning #6 - No thanks at Elektroda! /
 

gcolsani

Newbie level 6
Joined
Jan 10, 2003
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Córdoba - Argentina
Activity points
117
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.
 

juan_manuell

Member level 4
Joined
Feb 23, 2002
Messages
72
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,286
Location
Argentina
Activity points
626
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
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top