To mark randall

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




To Mark Randall::First of all thanks for replying . Well i wann to know
the virtual memory layout of the code. and about the assembly code
suppose i hav e a assembly code i wann to convert it into the exe fileI
wann to know how t his can happen. As far as i know the the pointer
addres that we mention in t he C++ program are the virtual address.
like suppose i say int i;int* i_ptr=&i;Here &i returns the virtual
address of "i" in the code. But if u compile this program and get the
ASM file you can see the registers . I dont think the assembly code in
the ASM file specifies the virrtual addr ess. So perhaps for paging the
ASM code is converted to EXE file. I am not s ure if this is what
happens. I want to know if it is true. And the stack is not like this
as you have mentioned. [Function 1 Vars] [Stack Pointer] [Func tion 2
Vars] [Stack Pointer] [Function 3 Vars] [Stack Pointer] But as far as i
know it is like first the invironment varriables are pushed into the
stack. then the global values and then the main and other functions .
Well main is replaced by other functions which are found in the
crt0.cpp f ile. And the stack pointers you have mentioned, are they
storing the virtual addr ess or the physical address? If my grammer is
poor sorry.



--
DeltaOne
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------



.



Relevant Pages

  • Re: In memory layout of the C++ program
    ... suppose i have a assembly code i wann to convert it into the exe fileI ... wann to know how this can happen. ... But if u compile this program and get the ASM file you can see ... And the stack is not like this as you have mentioned. ...
    (microsoft.public.vc.language)
  • In memory layout of the C++ program
    ... Well i wann to know ... suppose i have a assembly code i wann to convert it into the exe fileI ... But if u compile this program and get the ASM file you can see ... Vars] [Stack Pointer] ...
    (microsoft.public.vc.language)
  • Re: question regarding stack size allocation
    ... >> assembly code produced by gcc. ... >> trying to figure out how the stack pointer increments ... C guarantees that members of a struct are in declared order; padding ...
    (comp.lang.asm.x86)
  • Re: Question about function call in a microprocessor?
    ... > or subroutine call in a assembly code. ... > about the stack here. ... > foo uses lets says 5 local varaibles. ... compiler and look at the output listing. ...
    (sci.electronics.design)
  • Re: Renaissance of Forth
    ... visibility of Forth's stack and the grammar didn't appear to have any ... When writing assembly code to work with any language (Forth, C, ... assembly code definitions in Forth therefore required the programmer ...
    (comp.lang.forth)