Memory used by the program

  • Thread starter Thread starter Horacius ReX
  • Start date Start date
H

Horacius ReX

Hi,

I am developing some code which first I compile with VS and afterwards
I test on another special hardware which has almost no debug
capabilities at all. Usually I get a lot of errors in the latter,
because I have memory size limitations. So, I wonder what are the best
practices in VS to know for a given program, once it is compiled and
before its execution:

- what will be the stack size available for the program
- what will be the size of the code
- what will be the size of the allocated data (global variables, etc)
- if it is also possible to estimate the size of the heap used

Thanks in advance

H
 
Horacius ReX said:
Hi,

I am developing some code which first I compile with VS and afterwards
I test on another special hardware which has almost no debug
capabilities at all. Usually I get a lot of errors in the latter,
because I have memory size limitations. So, I wonder what are the best
practices in VS to know for a given program, once it is compiled and
before its execution:

- what will be the stack size available for the program
- what will be the size of the code
- what will be the size of the allocated data (global variables, etc)
- if it is also possible to estimate the size of the heap used

Thanks in advance

H

Before anybody can answer, how about some details? What language are you
using? Memory allocation for a given data type is part of a given language
(or technology platform) specification. This sounds like a non-.NET
application, perhaps C++? Give us the above and the target platform
information for meaningful answers.
 
This should all be handled by the ..NET Framework for you. Even on Windows
Embedded devices with little memory, the compact framework can handle this.
Are you sure you are working with .NET?

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
 
Sorry, I forgot to mention, the language is C

Before anybody can answer, how about some details? What language are you
using? Memory allocation for a given data type is part of a given language
(or technology platform) specification. This sounds like a non-.NET
application, perhaps C++? Give us the above and the target platform
information for meaningful answers.
 
Horacius ReX said:
Sorry, I forgot to mention, the language is C

In other words, it's not a .NET program? I'd try a more appropriate
newsgroup if I were you.
 
Horacius ReX said:
the thing here is that I am using Visual Studio 2005 to debug/desing
the program, this is why I wrote here

Well, there are non-.NET groups that might be better, like...

microsoft.public.vc.language

or

microsoft.public.vc.ide_general

These are non-.NET groups.
 
Back
Top