![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
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 |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
@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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic Rhapsody
» Rhapsody Category » Rhapsody
»
Rhapsody reverse-engineering issues
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.