|
It is currently Wed Feb 22, 2012 10:53 pm
|
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 |
|
oakdemir
|
Post subject: overhead OXF brings Posted: Wed Feb 10, 2010 2:06 pm |
Joined: Tue Jun 24, 2008 6:18 pm Posts: 141 Location: Ankara
|
|
Hi,
What is the SIZE overhead PER active object ? ( executable file (elf) ) What is the BSS overhead PER active object ? What is the TEXT overhead PER active object ? What is the DATA overhead PER active object ? What is the STACK overhead PER active object ? What is the HEAP overhead PER active object ? What is the SIZE/BSS/TEXT/DATA/STACK/HEAP overhead FOR THE FRAMEWORK ITSELF ?
|
|
|
|
 |
|
Farquad
|
Post subject: Re: overhead OXF brings Posted: Thu Feb 11, 2010 9:23 pm |
Joined: Thu Sep 13, 2007 7:34 pm Posts: 399 Location: London
|
|
All of these are dependent on the op-sys you are targetting.
What is the alternative? If you take the time to study the OXF (there is a model under the C++ oxf directory) you will see that it is the code that you need to provide a 'mailbox' based framework that most of us write anyway. Couple that will autogenerated statechart code and you get a powerful development tool.
Perhaps you don't use statecharts? If not then you are missing the primary reason to use Rhapsody.
|
|
|
|
 |
|
oakdemir
|
Post subject: Re: overhead OXF brings Posted: Fri Feb 12, 2010 7:01 am |
Joined: Tue Jun 24, 2008 6:18 pm Posts: 141 Location: Ankara
|
|
Hi,
Thanks for the reply. I am actually well aware of the advantages of using a state-based event-driven framework with an automatic code generation capable modeling tool. Thinking in event-driven way is much different than in traditional sequential way. However, it is important for me to understand how much overhead comes automatically with each active object introduced in the design.
Customizing the OXF capabilities within Rhapsody results in different sized applications and as usual, the smaller it is, the better it is. Take the Safety Critical (SC) version of OXF. What are those features eliminated so that much more compact code is obtained by using it ?
I wish I had a chance to see some benchmarking figures for different target platforms, anyway.
Regards.
|
|
|
|
 |
|
Farquad
|
Post subject: Re: overhead OXF brings Posted: Sat Feb 13, 2010 8:40 pm |
Joined: Thu Sep 13, 2007 7:34 pm Posts: 399 Location: London
|
|
Introducing an active object introduces a new thread that waits on an event queue. The overhead is therefore a context switch when processing events sent across threads and therefore dependent on rtos choice. You don't need any active objects. The main thread is used by default and sometimes a single threaded system is the best choice.
|
|
|
|
 |
|
sdrhapsody
|
Post subject: Re: overhead OXF brings Posted: Wed Jan 18, 2012 8:52 pm |
Joined: Thu May 21, 2009 11:25 pm Posts: 12
|
|
I have the same question as the OP, but for a different reason.
I have a very simple task. It basically sits on a message queue waiting for a command. Only one command will come. This command will block for a while due to IO calls. The command comes from a very high priority task that runs every 5 ms. This fast task is a/has state machine. So basically, the 5 ms task is delegating a job to the task that just waits on a message queue. It gets complicated because I want the slow task to notify the fast task when it is done. Since the fast task is already reactive, it would be simple codewise, to make the slow task reactive. But the question is, how much overhead does this add? My slow task is about 20 lines of code or so. Does it make sense to make it reactive? This is for Integrity OS. How can I accurately measure the overhead?
|
|
|
|
 |
|
|
 |
|
 |
|
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
|
|