Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 09:39 Go to next message
Eclipse User
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 10:26 Go to previous message
Dave Russo is currently offline Dave Russo
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: Thu Aug 28 05:16:02 EDT 2014

Powered by FUDForum. Page generated in 0.23822 seconds