473,386 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Memory Footprint

Hi,

I have an Application developed in eVC++. I have around 40 odd classes
for that appilcation. Some classes are single instance, they remain
throughout the execution. I am very eager to know, how are all
different types of variables actually stored in the memory. I also want
to know what happens when a function call is made. Does a class having
too many variables and too many functions affect the execution speed
specifically on PocketPC. If it affects how can I reduce that. Kindly
help.

Thanks,
With Regards,
Bhagat Nirav K.

Nov 22 '05 #1
2 2023
On 14 Nov 2005 22:04:03 -0800, "nilavya" <ni*****@gmail.com> wrote in
comp.lang.c++:
Hi,

I have an Application developed in eVC++. I have around 40 odd classes
for that appilcation. Some classes are single instance, they remain
throughout the execution. I am very eager to know, how are all
different types of variables actually stored in the memory. I also want
to know what happens when a function call is made. Does a class having
too many variables and too many functions affect the execution speed
specifically on PocketPC. If it affects how can I reduce that. Kindly
help.


The C++ language does not specify how variables are called in memory,
that is up to the implementation, usually influenced by the processor
hardware and the operating system.

What happens when a function call is made is that any arguments passed
to the function are copied into variables that the function can
access. Then execution is transferred to the function, with the
caller suspended until the function returns.

As for variables and functions, a program with none of either will
execute very, very fast, for it does nothing. As for how to
specifically make your programs run faster on a PocketPC, you would
need to ask in a group that supports programming in that environment.
It is quite possible that changes that would make a program faster on
one platform will make it slower on another.

But generally, a program needs at least as many functions and
variables as are necessary to perform its required operation.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Nov 22 '05 #2
> I have an Application developed in eVC++. I have around 40 odd classes
for that appilcation. Some classes are single instance, they remain
throughout the execution. I am very eager to know, how are all
different types of variables actually stored in the memory. I also want
to know what happens when a function call is made. Does a class having
too many variables and too many functions affect the execution speed
specifically on PocketPC. If it affects how can I reduce that. Kindly
help.


The following articles map C++ code to equivalent C code. This should
answer most of your questions.

http://www.eventhelix.com/RealtimeMa...erformance.htm

http://www.eventhelix.com/RealtimeMa...rformance2.htm

--
EventStudio System Designer 2.5 - http://www.EventHelix.com/EventStudio
Sequence Diagram Based System Design and Object Modeling Tool

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike Peretz | last post by:
I am trying to optimize my C# program, but no matter what I try the application keeps eating memory. I verified all the references and even got special software to count references. I made sure all...
6
by: Tom | last post by:
We have a VERY simple .NET C# Form Application, that has about a 23MB Memory Footprint. It starts a window runs a process and does a regular expression. I have done a GC.Collect to make sure that,...
2
by: assi | last post by:
Hello all We are developing a large dotnet application, which includes ~ 120 assemblies. (total size of all binaries is ~ 20MB). Our application also references the following dotnet assemblies:...
9
by: Mike P | last post by:
I know everything about reference counting and making sure you don't have large objects lying around. I have also profiled my app with multiple tools. I know about the fact GC collects memory but...
1
by: Derrick | last post by:
Thanks to many on this newsgroup, I now have a prototype Windows Forms C# app that reads xml documents into DataSets via XmlDataDocument, and does *stuff* with it. I basically have about 25 megs...
1
by: Derrick | last post by:
I am reading in xml files that equate to sql tables, via XmlDataDocument, and then operating on the DataSet. With the most simple app that just loads the xml doc, I see the memory footprint of the...
8
by: Bob Dufour | last post by:
We got a windows form application that we wrote in VB.Net. Essentially its a manager for a list of persons and their contacts and some other info about the persons. No rocket science but lots of...
12
by: Varun Kacholia | last post by:
Apologies if this has been answered somewhere, but Google did not produce any concrete results. I would like to find out the memory footprint of a vector<T>. I tried to dig in the STL code and...
9
by: jeungster | last post by:
Hello, I'm trying to track down a memory issue with a C++ application that I'm working on: In a nutshell, the resident memory usage of my program continues to grow as the program runs. It...
9
by: neil.johnston | last post by:
I have a cut down example program that uses multiset to order some data. The data arrives from various sources and has a time stamp, data with identical timestamps can arrive and due to fifo's and...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.