|
It is currently Thu Feb 09, 2012 1:35 am
|
View unanswered posts | View active topics
| Welcome |
|
Welcome to RHAPSODY4YOU
You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today. |
 |
|
 |
|
| Author |
Message |
|
andyk
|
Post subject: Code size/performance statistic -OOP vs. conventional coding Posted: Mon Jun 28, 2010 9:22 am |
Joined: Thu May 20, 2010 7:22 am Posts: 5
|
|
Hello!
I'm searching for informations for a comparison between OOP(generated code) vs. conventional coding.
First of all, we are using Rhapsody with C for embedded (real small) microcontrollers. Rhapsody generates many pointer (and overhead). How much affects it the performance?
Have you got some experienced data for me?
|
|
|
|
 |
|
oakdemir
|
Post subject: Re: Code size/performance statistic -OOP vs. conventional coding Posted: Tue Jun 29, 2010 11:55 am |
Joined: Tue Jun 24, 2008 6:18 pm Posts: 141 Location: Ankara
|
|
Hi,
Do you use ports ?
Other than ports, I can not see any stuff resulting in "overhead". Could you please give a solid example ?
Özgür Eser Akdemir.
|
|
|
|
 |
|
Farquad
|
Post subject: Re: Code size/performance statistic -OOP vs. conventional coding Posted: Tue Jun 29, 2010 2:45 pm |
Joined: Thu Sep 13, 2007 7:34 pm Posts: 397 Location: London
|
|
andyk, I guess when you say "conventional coding" you mean what is termed functional-c in Rhapsody land.
Rhapsody originated in C++ but the C version is the most flexible in terms of ability to generate different code styles. The default code generated in Rhp-C is object based, i.e. the concept of a class is respected by passing a 'me' pointer into each function. If you want to generate flat, functional c then use files instead.
Rhapsody in C will also support polymorphism, modelled by realising interfaces, but the code is probably less efficient than using C++.
|
|
|
|
 |
|
|
 |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|