From: Ron Michael Khu <ronkhu@ntsp.nec.co.jp>
To: Ankit Jain <ankitjain1580@yahoo.com>,
linux prg <linux-c-programming@vger.kernel.org>,
gcc-help@gcc.gnu.org
Subject: re: memory problem
Date: Mon, 13 Sep 2004 19:51:20 +0800 [thread overview]
Message-ID: <414589B8.6040805@hq.ntsp.nec.co.jp> (raw)
In-Reply-To: <20040913111103.77851.qmail@web52901.mail.yahoo.com>
what method did u use to allocate memory??
static:
char array[1024*1024] ;
dynamic
char *array = (char*)calloc( 1024*1024, sizeof(char) );
and why r u allocating such huge chunks for an array?
Ankit Jain wrote:
>hi
>
>well i am fixed up in a new problem
>
>i am using a array of size 1024*1024
>
>it gives segmentation fault
>
>it works with 512*512
>
>my menory size is 128 mb and 512 swap
>
>i have enough memory space and using gcc 3.2 v
>
>may be i need to increase the memory size
>
>how to do that?
>
>ankit
>
>________________________________________________________________________
>Yahoo! Messenger - Communicate instantly..."Ping"
>your friends today! Download Messenger Now
>http://uk.messenger.yahoo.com/download/index.html
>-
>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 prev parent reply other threads:[~2004-09-13 11:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-13 11:11 (unknown) Ankit Jain
2004-09-13 11:20 ` Ron Michael Khu
2004-09-13 11:51 ` Ron Michael Khu [this message]
2004-09-14 15:26 ` Re: Ron Michael Khu
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=414589B8.6040805@hq.ntsp.nec.co.jp \
--to=ronkhu@ntsp.nec.co.jp \
--cc=ankitjain1580@yahoo.com \
--cc=gcc-help@gcc.gnu.org \
--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).