From: Reinaldo Nolasco Sanches <r_linux@yahoo.com>
To: linux-c-programming@vger.kernel.org
Subject: Alignment of variables in gcc
Date: Sat, 23 Nov 2002 15:42:07 -0800 (PST) [thread overview]
Message-ID: <20021123234207.35576.qmail@web14402.mail.yahoo.com> (raw)
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
next reply other threads:[~2002-11-23 23:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-23 23:42 Reinaldo Nolasco Sanches [this message]
2002-11-23 23:51 ` Alignment of variables in gcc Jason P. Winters
2002-11-24 7:34 ` Glynn Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021123234207.35576.qmail@web14402.mail.yahoo.com \
--to=r_linux@yahoo.com \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).