From: zhaobin xv <xvzhaobin@gmail.com>
To: gcc@gcc.gnu.org
Subject: memory allocation
Date: Mon, 16 Sep 2013 08:43:00 -0000 [thread overview]
Message-ID: <CANEcUBX9ntHdZ7qEJg7ke=MADcxfP_uOwNnA==XvKbf3kyH1Lw@mail.gmail.com> (raw)
Hi
As I know in C :
a. Global and static variables locate at data segment
b. When a function is called, memory is allocated on the stack to hold
parameter values, local variables, and the address of the calling
function
c. the struct is aligned based on the greatest alignment requirement
of it's members.
I want to know what these base on to define?
Are there some manual or book about these?
next reply other threads:[~2013-09-16 8:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-16 8:43 zhaobin xv [this message]
2013-09-17 14:45 ` Ian Lance Taylor
-- strict thread matches above, loose matches on Subject: below --
2003-09-13 16:34 Dan Kegel
2003-09-12 13:18 Laczó Tibor
2003-09-12 13:21 ` Gerald Pfeifer
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='CANEcUBX9ntHdZ7qEJg7ke=MADcxfP_uOwNnA==XvKbf3kyH1Lw@mail.gmail.com' \
--to=xvzhaobin@gmail.com \
--cc=gcc@gcc.gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).