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
1
vote
1 answer
number of bytes available given address bus width and various information
A processor has
24 bit address bus
16 bit data bus
word contains 2 bytes
byte addressable
Peripherals and memory units will be connected and the entire memory space most likely will be used.
There are quite a few questions and I only ever…
user796388
1
vote
0 answers
How to acquire virtual address space and separately provision memory on Win64, MacOS and Linux?
I would like to build a memory allocator to manage a large chunk of non-shared, linear address space (e.g. 32GB). I need to run this on the Big-3 operating systems, but I can live with having OS-specific code.
Functionality desired:
At start,…

John Yates
- 1,027
- 1
- 7
- 18
1
vote
0 answers
LLVM global constructor is not called for ATmel processors
I have compiled a cpp code and downloaded it to Arduino Uno for blinking an LED. The code works fine.
However, when I convert it to .ll and from .ll to an object file then hex and upload, the code stops working. No LED blinks by the Arduino.
If I…

ar2015
- 5,558
- 8
- 53
- 110
1
vote
1 answer
Does what define a cpu's address space?
My confusion is based on these 3 thoughts -
Is it 2^(number of all address pin available on the cpu)?
Is it the 2^(size of one specific register)?
Is it a hardware circuit which understands all the addresses within a range of addresses? Then what…

bipul kalita
- 25
- 7
1
vote
0 answers
Why are the CPU Physical Address Space and Bus Address Space different?
I'm reading about DMA and it refers to the following address spaces:
CPU Virtual Address Space
CPU Physical Address Space
Bus Address Space
I understand why the virtual and physical address space is different... by why is there a mapping required…

iAdjunct
- 2,739
- 1
- 18
- 27
1
vote
2 answers
Including a library in C, where does it place in the address space?
I understand how an address space is partitioned into: code, data, stack and heap. However, I am having trouble mapping what goes to where for a given C code.
I know that:
global variables are in the data section. static variables are in the data…

iceQueem
- 11
- 2
1
vote
1 answer
Logical address space non-contiguous or Physical address space non-contiguous?
First of all, I'm a beginner in operating system.
What makes me really confused are the terms logical address space and physical address space.
In paging and segmentation, I thought logical address space of a process is something that is local so…

dnjsdnwja
- 389
- 1
- 7
- 17
1
vote
1 answer
How to write data to process address space from kernel?
When a process is created by do_execve, I want to write some data somewhere (say 0x0100_0000) such that after the process is run it can access that address to retrieve the data? How to achieve this task?

Matthewxie
- 141
- 2
- 10
1
vote
0 answers
Adding an offset to a pointer on OpenCL
I have a buffer that I'm passing to an OpenCL kernel via cl_mem object that I want to interpret as different types depending on the region eg
kernel void do_something(global void * data) {
global double * offset_ptr = data + 20;
global uint…

tauroid
- 46
- 4
1
vote
1 answer
Kernel space and user space virtual address division
Whether the kernel space and user space address ranges are always divided in 1:3 ratio.
For example if I have 4GB of address space and 4GB of physical RAM then the kernel gets 1GB and user space gets 3GB (assumed)!
So if I have 2GB of RAM then is it…

sourav punoriyar
- 830
- 8
- 18
1
vote
1 answer
How can kernel threads ask pages for only themselves?
As you know, every kernel threads share one kernel memory space. The mm field of the task_struct describing a kernel thread is null. It uses the mm field of 'priv' task.
I think it makes any kernel thread access other kernel thread's private memory…

Yong-Ho Shin
- 11
- 1
1
vote
1 answer
Is there any way I can separate the stacks of the contexts I get from getcontext()?
Is there any way I can separate the stacks of the context I get from getcontext()? Such that it is exact copy of parent with a different stack. So that when I use setcontext() or swapcontext() it would essentially work like a fork system call?
I…

pizzaEatingGuy
- 878
- 3
- 10
- 19
1
vote
0 answers
Why address_space_operations writepage is not being called?
I am working on implementing address space operations in WrapFS and I tried to imitate the code from existing ecryptfs filesystem source as my aim is to ultimately implement an encrypted filesystem. The code implementation given below is working…

bawejakunal
- 1,678
- 2
- 25
- 54
1
vote
1 answer
Parent process and it's child process address space
When I read the book Operating system design and implementation, in chapter 2, Process creation, here is what it mentions:
The child's initial address space is a copy of the parent's, but
there are two distinct address involved
This is a bit…

Sam
- 4,521
- 13
- 46
- 81
1
vote
1 answer
addresability vs address space vs address bus
How do you determine addressability based on address space? How do you determine the size of the address bus based on the addressability? Ex. The addressability of a machine is 32 bits, what is the size of the address bus?

scalen121
- 905
- 3
- 10
- 22