The set of addresses that the code of a process is able to refer to during its execution. Note that the ability of a process to refer to some addresses doesn't mean that actual memory is allocated at those addresses.
Questions tagged [address-space]
79 questions
22
votes
8 answers
How do you deal with numbers larger than UInt64 (C#)
In C#, how can one store and calculate with numbers that significantly exceed UInt64's max value (18,446,744,073,709,551,615)?

Alex
- 75,813
- 86
- 255
- 348
20
votes
7 answers
Why can't OS use entire 64-bits for addressing? Why only the 48-bits?
I'm reading "Understanding Linux Kernel".
Paging for 64-bit Architectures
As we have seen in the previous
sections, two-level paging is commonly
used by 32-bit microprocessors.
Two-level paging, however, is not
suitable for computers that…

claws
- 52,236
- 58
- 146
- 195
16
votes
2 answers
AppDomain address space
First, the question: do CLR specifications guarantee that the code executing in multiple app domains within the same process will share the same address space? By "sharing the address space" I mean that pointers to memory allocated in one of the app…

Sergey Kalinichenko
- 714,442
- 84
- 1,110
- 1,523
15
votes
3 answers
how to check if exe is set as LARGEADDRESSAWARE
I am developing a C# program that will load files and get information such as loaded file created date, modification date, size etc. Another thing that I need to know is whether the loaded file (executable.exe) is linked with the LARGEADDRESSAWARE…

harrygg
- 664
- 1
- 7
- 12
14
votes
2 answers
Linear address and physical address
What is linear address? How is it different from physical address?

Shweta
- 5,198
- 11
- 44
- 58
12
votes
2 answers
How to have LLDB print the locations of shared libraries in memory?
I am trying to gather as much information as I can about an apparent infinite loop issue seen when using Valgrind 3.11.0 on Mac OS 10.11.1 'El Capitan'.
When I run valgrind on my program in LLDB or attach to valgrind running my program and then stop…

Daniel Trebbien
- 38,421
- 18
- 121
- 193
9
votes
2 answers
What happens with a processor when it tries to access a nonexistent physical address?
Imagine a 32-bit x86 computer with less than 3 gigabytes of memory with CPU set up with disabled paging and flat segment descriptors (0x0 as base, 0xffffffff as an effective limit for both data and code).
What happens when an instruction in ring0…

gfv
- 784
- 7
- 12
6
votes
1 answer
Python: writing to another process's memory under linux
How to write to another process's address space using python under Ubuntu Linux?
My attempts:
1) Using the virtual file /proc/$PID/mem and seeking to the address. I have successfully used it to read memory, but attempting to write causes an…

user1998059
- 91
- 5
5
votes
3 answers
How the memory is mapped when fork is used?
i am new to "fork()",I read everywhere that when a fork() is called an exact copy of current (calling) process is started.Now when I run following code ,there should be two different processes, having two different memory locations assigned to their…

buch11
- 872
- 3
- 13
- 29
5
votes
1 answer
x86-64: canonical addresses and actual available range
Intel and AMD documentation says that for 64 bit mode only 48 bits are actually available for virtual addresses, and bits from 48 to 63 must replicate bit 47 (sign-extension). As far as I know, all current CPU are implemented this way, but nothing…

Giuseppe Guerrini
- 4,274
- 17
- 32
5
votes
2 answers
How to find holes in the address space?
I have a set of files whose lengths are all multiples of the page-size of my operating system (FreeBSD 10). I would like to mmap() these files to consecutive pages of RAM, giving me the ability to treat a collection of files as one large array of…

fuz
- 88,405
- 25
- 200
- 352
5
votes
0 answers
Method Overloading per address-space qualifiers on 'this' parameter
In C++ using clang++, is it possible to overload a method according to address-space qualifiers on the implicit ‘this’ parameter? If so, what is the syntax?
This source suggests that I can place the address-space qualifier after the parameter list…

Nick
- 51
- 2
4
votes
2 answers
filename of memory mapped libraries osx
I need to get the filenames of all memory mapped libraries of the current application. Currently I'm going through all mapped libraries via vm_region. Sadly it doesn't provide information about the filename of the current region. Is there a way to…

nux
- 355
- 3
- 10
4
votes
1 answer
Is access to heap section of parent process by child process (created by fork() ) legal?
Can a child process access(read and write) parent process's heap address space?
Following is the program i tried at http://www.ideone.com/R5vDT which is running successfully:
int main(){
int *p = (int*)malloc(sizeof(int));
…

monish001
- 671
- 2
- 8
- 20
4
votes
1 answer
Address space for shared libraries loaded multiple times in the same process
First off, I've already found a few references which might answer my question. While I plan on reading them soon (i.e. after work), I'm still asking here in case the answer is trivial and does not require too much supplementary knowledge.
Here is…

Peniblec
- 437
- 5
- 18