From: Phillip Susi <psusi@cfl.rr.com>
To: Ram Gupta <ram.gupta5@gmail.com>
Cc: linux mailing-list <linux-kernel@vger.kernel.org>
Subject: Re: How to determine the start of DATA segment
Date: Thu, 30 Mar 2006 12:31:28 -0500 [thread overview]
Message-ID: <442C15F0.4000204@cfl.rr.com> (raw)
In-Reply-To: <728201270603300837g60eefb65u8b55df910b86f6c4@mail.gmail.com>
The program's DATA segment is of fixed size as link time. It contains
all of the initialized variables your program has. It does not grow at
runtime. You can find out how large it is by looking at the output of
objdump. Maybe you meant to ask what is the upper limit on the size of
your heap?
Ram Gupta wrote:
> Is there a system call or library function which a process can use to
> determine the start of its data segment . I need to know the start of
> the data segment so that process does not cross its DATA limit. Using
> this information & sbrk it knows how much data space is already used &
> how much it can grow further without crossing the limit.
>
> Thanks
> Ram Gupta
prev parent reply other threads:[~2006-03-30 17:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-30 16:37 How to determine the start of DATA segment Ram Gupta
2006-03-30 16:52 ` Jon DeVree
2006-03-30 17:12 ` Ram Gupta
2006-03-30 17:31 ` Phillip Susi [this message]
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=442C15F0.4000204@cfl.rr.com \
--to=psusi@cfl.rr.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ram.gupta5@gmail.com \
/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