top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are the advantages of doing memory mapped IO?

+1 vote
316 views
What are the advantages of doing memory mapped IO?
posted Jan 2, 2015 by Syed

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote

In the following example

int  main()
{
  char *ptr ="shakti";
}

Where does ptr get memory? IN data segment or in stack or code segment ?
Please clarify.

+3 votes

I am using gprof on an HP-UX system for a program compiled with HP's native aCC (using the -G option, which is documented as compatible with gprof).

I get this every time I run gprof on even a small sample gmon.out:

$ gprof  gmon.out > gprof.out    
gprof: out of memory allocating ********** bytes after a total of 15552512 bytes

This works on other HPs we have in house, though I don't have access to them to be able to track down why.

Any clues that might point me in the right direction?

4,294,967,256 seems like an awful lot of memory to handle a 8,647,174 byte gmon.out file....

...