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: generating class with packed element for gcc
Topic Summary:
Created On: 7-Oct-2005 11:02
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.
 7-Oct-2005 11:02
User is offline View Users Profile Print this message


Kishore kumar

Posts: 5
Joined: 11-May-2005

I would like to generate a packed class using gcc.

The syntax in gcc shd look like:

class A{
int x;
char y;
A();
}__attribute__((packed));

How could i generate the __attribute__ as shown above between the class closing bracket and semicolon?

In case of VC++, I just use #pragma pack in specification epilog,but most of the gcc compiler dont support or recommend it.

have any one come across such problem?

Regards,
Kishore
Report this to a Moderator Report this to a Moderator
 14-Oct-2005 18:55
User is offline View Users Profile Print this message


Bernhard Merkle

Posts: 18
Joined: 2-Jun-2005

Hi,

you might look up the Codegenerator properties. I think they have something like "pre-" or "post-" prologue, where you can insert your own code at the end of a class.

kind regards,
Bernhard.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 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.