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: Rhapsody reverse-engineering issues
Topic Summary: Known bugs etc
Created On: 5-Feb-2008 18:16
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.
 5-Feb-2008 18:16
User is offline View Users Profile Print this message


Dan McNeill

Posts: 10
Joined: 1-Feb-2007

Hi,

I'm trying to reverse-engineer some old C files into Rhapsody, and experiencing a number of issues. I just wanted to raise them here to see if anyone could shed any light on them, or had seen them in the past.

- Does Rhapsody require DOS-format files? I sometimes see funny results with Unix files.

- Does it understand array function arguments given like this: "int myarr[]" or "int myarr[5]", as opposed to "int* myarr"? I seem to have more luck with the latter.

- I'm having some issues with "struct x { ... };" vs. "typedef struct x { ... } x;" or "typedef struct { ... } x;". Which does Rhapsody require?

- I have an #ifndef x / #define x / #endif sequence, and Rhapsody complains that it finds the #endif without an #if! Strange.

Thanks,
Dan
Report this to a Moderator Report this to a Moderator
 6-Feb-2008 10:24
User is offline View Users Profile Print this message


Bernhard Gassner

Posts: 15
Joined: 27-Jun-2007

@DOX/Unix format lines:
I think/suggest that Rhapsody has some problems with files in the Unix-format.
My suggestion is based on the following:
I am using the Cygwin package under Windows, to use the gcc compiler with Rhapsody. The installation-manual for Cygwin, which is supplied by Telelogic, says, that you have to set the "Default Text File Type" to "DOX / text", to get CR-LF line endings. The recommended setting from Cygwin would be "Unix / binary".
Furthermore somewhere in the installation documentation it was said, that not setting this to DOS could lead to problems with Rhapsody.

@remaining questions:
sorry, there I can't help you.

Edited: 6-Feb-2008 at 10:27 by Bernhard Gassner
Report this to a Moderator Report this to a Moderator
 6-Feb-2008 13:14
User is offline View Users Profile Print this message


Dan McNeill

Posts: 10
Joined: 1-Feb-2007

Bernhard,

Thanks for your input.

As a test I came up with a very simple code fragment, and tried reverse-engineering that into my model - nothing! Not even the destination package was created.

So I then tried the same thing in a new, blank model, and it works. Even my original, non-modified code reverse-engineers here, with no errors at all (it was partially reverse-engineering in my other model but with errors).

I have compared all the properties on the model and the configuration under CPP_Reverse_Engineering, and they are exactly the same, so I am somewhat bemused as to what could cause it to work in one model but not in the other!

Never mind - this is my workaround...

Dan
Report this to a Moderator Report this to a Moderator
 7-Feb-2008 10:09
User is offline View Users Profile Print this message


Bernhard Gassner

Posts: 15
Joined: 27-Jun-2007

good to hear that you found a workaround.

There is something which might be interesting for you, when you use the workaround.
You can open two projects at the same time in the same Rhapsody-Window, and then move/copy model-elements from one to the other.
For further information on that topic, see html help:
"Using Rhapsody -> Working with Projects -> Working with Multiple Projects"

If copying doesn't work, make sure that the part you want to copy is saved as a unit (rightclick -> create unit).

Yours,
Bernhard
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.