It is currently Thu Feb 09, 2012 1:35 am

All times are UTC



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.





 Page 1 of 1 [ 3 posts ] 
Author Message
 Post subject: Code size/performance statistic -OOP vs. conventional coding
PostPosted: 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?


Offline
 Profile  
 
 Post subject: Re: Code size/performance statistic -OOP vs. conventional coding
PostPosted: 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.


Offline
 Profile  
 
 Post subject: Re: Code size/performance statistic -OOP vs. conventional coding
PostPosted: Tue Jun 29, 2010 2:45 pm 
User avatar

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++.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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

Search for:

cron

suspicion-preferred