Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: Allocate St...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 12 Topic 26079 of 26960
Post > Topic >>

Re: Allocate Static Memory?

by Nick Keighley <nick_keighley_nospam@[EMAIL PROTECTED] > May 6, 2008 at 02:00 AM

On 6 May, 03:50, "Bryan Parkoff" <nos...@[EMAIL PROTECTED]
> wrote:

> =A0 =A0 I want to know how much static memory is limited before
execution
> program starts.

this is platform (OS + hardware) specific.

>=A0I would write a large array. =A0The large array has 65,536
> elements. =A0The data size is double word. =A0The static memory would
> allocate 256K. =A0

this isn't an enormous amount on a modern system.


The 256K is a fixed memory size. =A0After the compiler has completed
> compiling header and source code, the execution program might fail to
run =
or
> crash. =A0

what do mean "might"? Does it crash? always? sometimes?

> The operating system might do not display error message saying,
> "Insufficient memory."

"might"? I think you might be using non-standard english.

Look, 256k is a *tiny* amount of memory (unless you are
programming a toaster). Are you certain its a memory problem?
Try reucing the static memory to a much smaller amount.
Does it still crash? It may not be a memory problem.

Is your code small enough to post here?

<snip>


--
Nick Keighley
 




 12 Posts in Topic:
Allocate Static Memory?
"Bryan Parkoff"  2008-05-05 21:50:07 
Re: Allocate Static Memory?
"Dann Corbit" &  2008-05-05 20:03:34 
Re: Allocate Static Memory?
Robert Gamble <rgamble  2008-05-05 20:13:45 
Re: Allocate Static Memory?
Peter Nilsson <airia@[  2008-05-05 21:24:24 
Re: Allocate Static Memory?
Nick Keighley <nick_ke  2008-05-06 02:00:41 
Re: Allocate Static Memory?
Noob <root@[EMAIL PROT  2008-05-07 10:28:38 
Re: Allocate Static Memory?
Ian Collins <ian-news@  2008-05-07 20:45:40 
Re: Allocate Static Memory?
Noob <root@[EMAIL PROT  2008-05-07 11:21:13 
[OT] Re: Allocate Static Memory?
Ian Collins <ian-news@  2008-05-07 21:32:05 
Re: Allocate Static Memory?
CBFalconer <cbfalconer  2008-05-07 12:18:11 
Re: Allocate Static Memory?
Charlton Wilbur <cwilb  2008-05-06 13:58:17 
Re: Allocate Static Memory?
"Chris Thomasson&quo  2008-05-06 13:48:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 16:32:15 CDT 2008.