467,868 Members | 1,315 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,868 developers. It's quick & easy.

Alignment on Struct and Global Variable?

I know that after optimization is done under C++ compiler's option, it
always align byte and word into dword inside struct. What about global
variable in this slope?
If global variable has done with alignment by optimization, it would be
great when I write global variable inside namespace group. It has no impact
with the performance between global variable and struct, but they are always
the same.

Bryan Parkoff
Jul 23 '05 #1
  • viewed: 1042
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Bryan Parkoff | last post: by
36 posts views Thread by Bhalchandra Thatte | last post: by
67 posts views Thread by S.Tobias | last post: by
5 posts views Thread by Jim Ward | last post: by
5 posts views Thread by Hendrik Schober | last post: by
3 posts views Thread by Bill Pursell | last post: by
10 posts views Thread by haomiao | last post: by
13 posts views Thread by Chris Thomasson | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.