linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Alignment of variables in gcc
@ 2002-11-23 23:42 Reinaldo Nolasco Sanches
  2002-11-23 23:51 ` Jason P. Winters
  0 siblings, 1 reply; 3+ messages in thread
From: Reinaldo Nolasco Sanches @ 2002-11-23 23:42 UTC (permalink / raw)
  To: linux-c-programming


Sorry for this question here... but anybody have any good doc with explain this ???

i.e
In a struct is I put 

typedef struct myStruct {
  char variable1;
  int variable2;
} myStruct;

The sizeof() myStruct is 8, I read some documents and see with this not a bug, this occurs because
"Alignment requeriments"...

Anybody can explais this or have any documents for a newbie... I need of a great explanation with
images and text :)

Sorry for my bad english too...

Thanks in Advance... and not hate me.



=====
"When you know Slackware, you know Linux... when you know Red Hat, all you know is Red hat"

- I haven't lost my mind -- it's backed up on tape somewhere.
- Power doesn't corrupt people, people corrupt power.

- r_linux@yahoo.com -- http://slackware.linuxbr.org
- UIN: 42853394 - irc.brasnet.org(#slackware)

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-24  7:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-23 23:42 Alignment of variables in gcc Reinaldo Nolasco Sanches
2002-11-23 23:51 ` Jason P. Winters
2002-11-24  7:34   ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).