GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Concepts
Go To First  |  Previous Question  |  Next Question 
 Concepts  |  Question 8 of 24    Print  
Can anyone give me complete information while performing this situation,A function is running, it has its own stack pointer, memory area now it invokes another function from this point what changes will be in it's memory area and what other changes in data segment, stack segment, heap segment. I want a complete picture of memory architecture?

  
Total Answers and Comments: 2 Last Update: December 08, 2006     Asked by: nitin.goel 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 27, 2006 09:03:12   #1  
prasanth        

RE: Can anyone give me complete information while perf...

hi

There will be no change in memory area .And all the major part will be taken by the stack pointer.It depends on the calling conventions like pascals convention or any other depending on the parameters passed by the function.

The data is stored in registry.


 
Is this answer useful? Yes | No
December 08, 2006 01:17:27   #2  
kalayama Member Since: September 2006   Contribution: 501    

RE: Can anyone give me complete information while perf...
There will be a lot of changes in fact. First of all all the variables the function was suing needs to be pushed into the stack. (we need all these variables when we return from the other function). The Program counter will be pushed to stack too... (When the return of second function occurs we should know where to 'return' to)These are the basics which are bound to happen when a function calls another.
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : A database is an organized collection of information.  It is structured so you can jump to the information by using a key, and find related infromation by navigating a path.  A sequential (flat)  file is not considered a database.  ...
Read Answers (2) | Asked by : Sandeep
Tags : RDBMS

Latest Answer :  Designing a normalized schema is known as data modeling Designing a de- normalized schema is known as dimension modeling Sithu ...

Latest Answer : #includevoid main(){int i;char temp;char str[9] = "Computer";int length;length = strlen(str1)-1;printf("The length of the String is: %dn",length);for(i=0;i

Latest Answer : Linux supports virtual memory, that is, using a disk as an extension of RAM so that the effective size of usable memory grows correspondingly. The kernel will write the contents of a currently unused block of memory to the hard disk so that the memory ...
Read Answers (2) | Asked by : Raghavendra

Can anyone give me complete information while performing this situation,A function is running, it has its own stack pointer, memory area now it invokes another function from this point what changes will be in it's memory area and what other changes in data segment, stack segment, heap segment. I want a complete picture of memory architecture?
Tags : Pointer

73 The term "non volatile memory" states 1. that memory is retained in the memory unit for some time even after power failure to the memory unit 2. that memory is lost by 
Latest Answer : There seems no question here posed except statements. Could you elaborate what is your question. And these statements also need to be elaborated. ...
Read Answers (1) | Asked by : Rujul

the basic elements of a picture in volume graphics is 1. pixel 2. volsel 3. voxel 4. either pixel or voxel 
Latest Answer : pixel ...
Read Answers (1) | Asked by : Rujul

A Two-dimensional array X (7,9) is stored linearly column-wise in a computer's memory. Each element requires 8 bytes for storage of the value. If the first byte address of X (1,1) is 3000, what would 
View Question | Asked by : sony24


 Sponsored Links

 
Related Articles

Breaking up XML into Relational Data

Breaking up XML into Relational Data While the preceding example shows how to construct an XML representation over relational data the example in this section illustrates how you can shred XML data back into relational data This reverse operation can be useful if your application works with relation
 

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Performing DML Operations on XML Schema Based XMLType Views

Performing DML Operations on XML Schema Based XMLType Views Analyzing the underlying query of the empSch v view discussed in the preceding section you may note that each attribute of the EMP T object used in the select list maps to a certain column of a single table namely emps What this means in pr
 

Retrieving XML Data

Retrieving XML DataTo retrieve XML data from an XMLType table you can use a SELECT SQL statement just as you would if you had to query a relational table For example to select the employee with the id set to 100 from the employees XMLType table discussed in the preceding section you might issue the
 

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

Performing XSLT Transformations inside the Database

Performing XSLT Transformations inside the Database Now that you have the employees XSL stylesheet stored in the database and the xmlusr schema is permitted to access the hr employees table you can create a script that will instruct the database to build an HTML page based on the data stored in hr e
 

Performing XML Processing inside the Database

Performing XML Processing inside the Database When building XML enabled applications on top of Oracle there are many advantages to performing the XML processing inside the database when compared to performing it on the client The key advantages to perform XML processing inside the database are as fo
 

ODP.NET - Techniques to Improve Performance while Retrieving Data

ODP NET Techniques to Improve Performance while Retrieving Data Performance tuning is a great subject in Oracle Volumes of books would not be enough to cover every aspect of performance tuning in Oracle However in this section we will only discuss the fundamental performance techniques while working
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape