By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,131 Members | 2,238 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,131 IT Pros & Developers. It's quick & easy.

Alignment on Struct and Global Variable?

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.