[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

Memory used by the program

Horacius ReX

9/22/2008 8:47:00 AM

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

7 Answers

PvdG42

9/22/2008 12:35:00 PM

0

"Horacius ReX" <horacius.rex@gmail.com> wrote in message
news:ff8c3224-52ad-4f14-9e36-be46d6c731ca@i76g2000hsf.googlegroups.com...
> 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.

Cowboy

9/22/2008 2:38:00 PM

0

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/Greg...

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

********************************************
| Think outside the box! |
********************************************
"Horacius ReX" <horacius.rex@gmail.com> wrote in message
news:ff8c3224-52ad-4f14-9e36-be46d6c731ca@i76g2000hsf.googlegroups.com...
> 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

9/22/2008 3:05:00 PM

0

Sorry, I forgot to mention, the language is C

On Sep 22, 2:34 pm, "PvdG42" <p...@toadstool.edu> wrote:
> "Horacius ReX" <horacius....@gmail.com> wrote in message
>
> news:ff8c3224-52ad-4f14-9e36-be46d6c731ca@i76g2000hsf.googlegroups.com...
>
>
>
> > 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.

Jon Skeet

9/22/2008 3:34:00 PM

0

Horacius ReX <horacius.rex@gmail.com> wrote:
> 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.

--
Jon Skeet - <skeet@pobox.com>
Web site: http://www.pobox....
Blog: http://www.msmvps.com...
C# in Depth: http://csharpi...

Horacius ReX

9/23/2008 8:20:00 AM

0

On Sep 22, 5:34 pm, Jon Skeet [C# MVP] <sk...@pobox.com> wrote:
> Horacius ReX <horacius....@gmail.com> wrote:
> > 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.
>
> --
> Jon Skeet - <sk...@pobox.com>
> Web site:http://www.pobox.com/~s...
> Blog:http://www.msmvps.com...
> C# in Depth:http://csharpi...

the thing here is that I am using Visual Studio 2005 to debug/desing
the program, this is why I wrote here

Brian Gideon

9/23/2008 3:18:00 PM

0

On Sep 23, 3:20 am, Horacius ReX <horacius....@gmail.com> wrote:
> On Sep 22, 5:34 pm, Jon Skeet [C# MVP] <sk...@pobox.com> wrote:
>
> > Horacius ReX <horacius....@gmail.com> wrote:
> > > 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.
>
> > --
> > Jon Skeet - <sk...@pobox.com>
> > Web site:http://www.pobox.com/~s...
> > Blog:http://www.msmvps.com...
> > C# in Depth:http://csharpi...
>
> the thing here is that I am using Visual Studio 2005 to debug/desing
> the program, this is why I wrote here

Are you using managed C++?

PvdG42

9/23/2008 4:13:00 PM

0


"Horacius ReX" <horacius.rex@gmail.com> wrote in message
news:80e66dc3-de71-4ab3-9950-b2be78aefa74@k37g2000hsf.googlegroups.com...
>
> 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.