Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
OMAP3: encountered a blocking structure assignment, occurring only on OMAP3 processors
Jump...
Cancel
Locked
Locked
Replies
6 replies
Subscribers
119 subscribers
Views
3809 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
OMAP3: encountered a blocking structure assignment, occurring only on OMAP3 processors
Wolfgang Hauser
over 12 years ago
Parents
Wolfgang Hauser
over 12 years ago
Note: This was originally posted on 1st August 2012 at
http://forums.arm.com
Thank you all for your fast and helpful answers. It seems we struggled into heavy alignment problems.
As we have to keep our source working on different platforms and need to exchange our buffers between all platforms, we need a portable solution witch uses the same binary representation on all involved platforms.
So I get the example working on all platforms, if I use following:
.....
if (m_enable_workaround) {
union a_u {
char *p;
a_t *s;
} t;
t.s = &a;
memcpy (&(c->ca),t.p,sizeof(a_t));
} else {
c->ca = a;
}
.....
The performance impacts of this construct I haven't measured yet.
Regards
Wolfgang
Cancel
Vote up
0
Vote down
Cancel
Reply
Wolfgang Hauser
over 12 years ago
Note: This was originally posted on 1st August 2012 at
http://forums.arm.com
Thank you all for your fast and helpful answers. It seems we struggled into heavy alignment problems.
As we have to keep our source working on different platforms and need to exchange our buffers between all platforms, we need a portable solution witch uses the same binary representation on all involved platforms.
So I get the example working on all platforms, if I use following:
.....
if (m_enable_workaround) {
union a_u {
char *p;
a_t *s;
} t;
t.s = &a;
memcpy (&(c->ca),t.p,sizeof(a_t));
} else {
c->ca = a;
}
.....
The performance impacts of this construct I haven't measured yet.
Regards
Wolfgang
Cancel
Vote up
0
Vote down
Cancel
Children
No data