Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Memory footprint
Topic Summary:
Created On: 10-Jul-2006 09:41
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 10-Jul-2006 09:41
User is offline View Users Profile Print this message


Lars Denker Jørgensen

Posts: 14
Joined: 1-Mar-2006

Hello

What is the approx. memory footprint (ROM), that OXF will use?

Thanks, Denker
Report this to a Moderator Report this to a Moderator
 11-Jul-2006 17:23
User is offline View Users Profile Print this message


Paul Coene

Posts: 10
Joined: 15-Dec-2005

I'd think that would depend alot on the platform you're compiling for and the various settings for number of timers, etc.... My release version of my entire product for windows is 600K, and I'd think most of that is application. Maybe create a project with a simple object and build it in release mode for your target?
Report this to a Moderator Report this to a Moderator
 31-Jan-2008 19:57
User is offline View Users Profile Print this message


Michael Lettner

Posts: 16
Joined: 7-Dec-2007

Can somebody tell me the approximate memory footprint if I would use IDF instead of OXF framework? How much ROM can be saved?

I would appreciate any approximate numbers that you have experienced during your developments - both for IDF and OXF

thanks,
Michael
Report this to a Moderator Report this to a Moderator
 1-Feb-2008 12:17
User is offline View Users Profile Print this message


Bernhard Gassner

Posts: 15
Joined: 27-Jun-2007

I have absolutely no clue how much footprint the OXF will generate, but I have can supply you some information about the IDF.
The following text is quoted from a slide of the essential tool training for Rhapsody in C.

    By using the IDF, it is possible to run Rhapsody in C without the need for an Operating System

    The IDF can replace the OXF and RTOS

    It can be used without malloc / free

    It generates smaller code. For example a simple stopwatch example takes 20K on an ARM7 (framework + libraries + generated code)

    Requires just a periodic interrupt to be setup (so that timeouts can be used in Statecharts)


I hope this helps you a bit. I remember that we asked for the OXF footprint size too during the training, but we haven't got a really good answer. At least nothing which was worth writing down, and I can't remember it anymore.

Yours,
Bernhard
Report this to a Moderator Report this to a Moderator
 1-Feb-2008 12:30
User is offline View Users Profile Print this message


Bernhard Gassner

Posts: 15
Joined: 27-Jun-2007

It's me again, I just realized that I can supply you with some values for IDF and OXF on a Windows PC with gcc under Cygwin as compiler.

The values are from a very simple project with one main object and some nested subobjects. It contains almost zero logic, just a few timers and printf's (less than 10 lines of code).
IDF project executable file: 112KB
OXF project executable file: 1,35MB

Additional information: The IDF works without container classes and RiCString, they can be included but I haven't done this (default is: not included).


I can not supply you with code size for my target system, because there is an RTOS linked together with the Rhapsody-code. So the size of the image isn't correct.

Yours,
Bernhard

EDIT: These values are for a debug-build. For release build see next posting.

Edited: 7-Feb-2008 at 12:46 by Bernhard Gassner
Report this to a Moderator Report this to a Moderator
 4-Feb-2008 19:38
User is offline View Users Profile Print this message


Michael Lettner

Posts: 16
Joined: 7-Dec-2007

Bernhard,

thanks for sharing your experiences. However, if somebody else also can provide some details about actual footprint sizes in their projects, I'd greatly appreciate it.

Michael
Report this to a Moderator Report this to a Moderator
 7-Feb-2008 12:44
User is offline View Users Profile Print this message


Bernhard Gassner

Posts: 15
Joined: 27-Jun-2007

Originally posted by: Bernhard Gassner
The values are from a very simple project with one main object and some nested subobjects. It contains almost zero logic, just a few timers and printf's (less than 10 lines of code).

IDF project executable file: 112KB
OXF project executable file: 1,35MB

I mixed something up with that values. I just took one of the already existing simple testing projects on my hard disk and checked the file sizes. But I forgot to set the compiler from 'debug' to 'release' first.

The correct values for release-build are:
IDF project executable file: 112KB
OXF project executable file: 1,26MB


Animation was deactivated in any of the listed cases.

Sorry for the mistake.
Bernhard

Edited: 7-Feb-2008 at 12:47 by Bernhard Gassner
Report this to a Moderator Report this to a Moderator
 18-Feb-2008 11:48
User is offline View Users Profile Print this message


Michael Lettner

Posts: 16
Joined: 7-Dec-2007

Thanks for your update Bernhard.

Speaking of Release mode, I'd have a related question:
I tried to set my configuration (just for "Microsoft", not a specific target yet) from Debug to Release mode, but all I get are following errors at make-time:



Building ------------ DefaultComponent.exe ------------
Executing: "...\Rhapsody\Share\etc\msmake.bat" DefaultComponent.mak build
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
Linking DefaultComponent.exe
LINK : fatal error LNK1181: cannot open input file '...\Rhapsody\Share\LangC\lib\MsoxfR.lib'
NMAKE : fatal error U1077: '"...\MS Visual Studio 8\VC\BIN\link.exe"' : return code '0x49d'
Stop.



So basically it seems that I miss the file "MsoxfR.lib" (which I physically don't have on my hard disk). Unfortunately, I also couldn't find any hints in Rhapsody documentation about Release mode.

If someone has a clue what I am missing/doing wrong here or can point me to relevant documentation, it'd be very helpful!

Thanks,
Michael
Report this to a Moderator Report this to a Moderator
 18-Feb-2008 13:02
User is offline View Users Profile Print this message


REISSER Eric

Posts: 2
Joined: 18-Dec-2007

Hello Michael,

In order to create an OXF library in Release mode, you have to edit your makefile.

For example, in Microsoft makefile "msbuild.mak" (<Rhapsody>\Share\LangCpp\), you have to specify BUILD_SET=RELEASE instead of BUILD_SET=DEBUG.

You have then to rebuild your OXF library :

..\etc\msmake.bat msbuild.mak

I hope it will help you.

Eric
Report this to a Moderator Report this to a Moderator
 18-Feb-2008 15:51
User is offline View Users Profile Print this message


Michael Lettner

Posts: 16
Joined: 7-Dec-2007

@Eric:
Thanks a lot - could 100 % solve my problem - I was not aware of that circumstance because for IDF in release mode rebuilding was not necessary.

@Bernhard:
just for the record - did you measure the release-build sizes just by comparing the created executables (e.g. DefaultComponent.exe), right?
Report this to a Moderator Report this to a Moderator
 20-Feb-2008 09:50
User is offline View Users Profile Print this message


Bernhard Gassner

Posts: 15
Joined: 27-Jun-2007

Originally posted by: Michael Lettner@Bernhard:

just for the record - did you measure the release-build sizes just by comparing the created executables (e.g. DefaultComponent.exe), right?


That's correct, yes.
Report this to a Moderator Report this to a Moderator
 20-Mar-2008 14:11
User is offline View Users Profile Print this message


Christian Loibl

Posts: 8
Joined: 11-Jun-2007

Hello,

do you also have some numbers for the RAM consumption?


Anyone there with experience in the usage of the Willert framework or the new static C framework?

thanks
Christian
Report this to a Moderator Report this to a Moderator
 28-Mar-2008 14:20
User is offline View Users Profile Print this message


Bernhard Gassner

Posts: 15
Joined: 27-Jun-2007

sorry, I have absolutely no information about the RAM consumption.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 0 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.