Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » Finding out the size of the structure in xs file
Finding out the size of the structure in xs file [message #484168] Fri, 04 September 2009 13:39 Go to next message
Eclipse UserFriend
Originally posted by: ravindranath.a.ti.com

Is there a way to find out the size of the structure (declared in xdc
file)
in module's xs file.
for example i have a structure
like below in xdc file

module xdc file

struct entry
{
UInt32 a;
uinon {
UInt8 b;
UInt32 c;
}
};


In xs file i have to know the size of <mod>_entry structure size.

How do i do this. Please let me know if any body knows how to do it?.
Re: Finding out the size of the structure in xs file [message #484623 is a reply to message #484168] Tue, 08 September 2009 14:26 Go to previous message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
Yes. See http://rtsc.eclipse.org/docs-tip/XDCscript_-_Struct-Object.$ sizeof


Ravindranath wrote:
> Is there a way to find out the size of the structure (declared in xdc
> file) in module's xs file.
> for example i have a structure
> like below in xdc file
>
> module xdc file
>
> struct entry
> {
> UInt32 a;
> uinon {
> UInt8 b;
> UInt32 c;
> }
> };
>
>
> In xs file i have to know the size of <mod>_entry structure size.
>
> How do i do this. Please let me know if any body knows how to do it?.
>
Previous Topic:Using GateSwi_Handle_upCast
Next Topic:Object & Target Specific Build Options?
Goto Forum:
  


Current Time: Fri Apr 26 06:03:44 GMT 2024

Powered by FUDForum. Page generated in 0.03485 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top