trying to write out memory map

This is a discussion on trying to write out memory map within the C++ Programming forums, part of the General Programming Boards category; I have an exe that I would like to see its memory map when the exe is executed. Is it ...

  1. #1
    Registered User
    Join Date
    Feb 2004
    Posts
    2

    Question trying to write out memory map

    I have an exe that I would like to see its memory map when the exe is executed.

    Is it possible?

    Could someone give a example of how to complete this?

    V/R

    Code:
    #include <iostream>
    #include <stdlib.h>
    #include <string.h>
    
    using namespace std;
    
    int main(int argc, char *argv[])
    {
      char child1[] = "test.exe";
      
      system(child1);
      
      system("PAUSE");	
      return 0;
    }
    Last edited by Donald; 06-08-2004 at 10:20 AM.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,676
    What compiler are you using?

    Some linkers support an option to generate a map file which shows the virtual mememory addresses where all the symbols in your app are loaded.

    gg

  3. #3
    Registered User
    Join Date
    Feb 2004
    Posts
    2
    Hi,

    I am using gcc compiler in Dev C++ IDE.

    Thanks...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. tools for finding memory leaks
    By stanlvw in forum C++ Programming
    Replies: 4
    Last Post: 04-03-2009, 11:41 AM
  2. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  3. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 08:32 AM
  4. Locating A Segmentation Fault
    By Stack Overflow in forum C Programming
    Replies: 12
    Last Post: 12-14-2004, 12:33 PM
  5. Array memory map
    By _Elixia_ in forum C Programming
    Replies: 2
    Last Post: 08-17-2003, 04:39 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21