Questions tagged [address-space]

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.

79 questions
3
votes
3 answers

Where memory will be allocated to "Uninitialized Static variable" upon initialization?

Uninitialized static variable are always allocated in BSS. While .bss section is static as memory is allocated at compile time. As per many books "only variables that are initialized to a nonzero value occupy space" in executable. After program is…
Rajesh Pal
  • 118
  • 1
  • 7
3
votes
3 answers

Could a pointer be initialized by random address which is equal to 0?

For example, we have int* p; Could this pointer be initialized by 0 randomly, it means initialized by the operating system, in this case we dont change the value of this pointer ?
user1886376
3
votes
2 answers

Data Copying to kernel space during system call

Suppose we have a system call write, which takes in a buffer as an argument. This buffer memory is a part of the user address space. How does the write call succeed further? Suppose that if I assume that the entire buffer is copied to the kernel…
3
votes
2 answers

global or local linear address space in Linux?

In linux, because the bases of segments are all 0, so the logical address coincide with the linear address (Book "Understanding the linux kernel"). I think the logical address of different process may be the same, so the linear address of different…
3
votes
2 answers

CUDA shared memory address space vs. global memory

To avoid really long and incohesive functions I am calling a number of __device__ functions from a kernel. I allocate a shared buffer at the beginning of the kernel call (which is per-thread-block) and pass pointers to it to all the __device__…
2
votes
1 answer

How does copy_to_user work on s390?

On the s390 architecture virtual kernel and user address spaces are never present at the same time, so how does copy_to_user work?
wnrph
  • 3,293
  • 4
  • 26
  • 38
2
votes
0 answers

Generating the instances of OPC UA objects automatically (Produce an XML for the addressSpace of the OPC UA Server) via JAVA

I have the XML document of the various types of OPC UA and some custom object types added to it.. for eg((1) StudentType with properties of Age, Birthplace (2) TeacherType with properties of Name, Expertise)) Also, I have another text input which…
2
votes
2 answers

DLL used by a program, where are the variables declared in it stored?

I have a program (not mine, have no source code) which exposes an interface so I can write a DLL which will be called by my program. Now I wondered when I declare some variable in this DLL I make, in what memory space is this going to be stored? I…
Tony The Lion
  • 61,704
  • 67
  • 242
  • 415
2
votes
3 answers

Are lookups on IDENTITY columns faster if the address space is contiguous?

If I have a very large table with an IDENTITY column (bigint) and this table is subject to deletes, will the fragmentation of the address space (the available IDs) result in slower SELECTS? Clarification: By address space fragmentation I mean the…
Brad
  • 15,361
  • 6
  • 36
  • 57
2
votes
2 answers

Is there a way to force a process to share address space from another process?

This is a purely theoretical question. As far as I'm concerned each process have different addressing space and each thread inside one process share the same memory space? Is there a way, especially in some UNIX system to change that behavior. To be…
2
votes
1 answer

What is "the kernel address space"?

From Understanding The Linux Kernel, here is some discussion about kernel thread vs user process i.e. regular process: Besides user processes, Unix systems include a few privileged processes called kernel threads with the following…
Tim
  • 1
  • 141
  • 372
  • 590
2
votes
1 answer

How to write in network address/netmask the following address space?

I'd like to ask how to write in network address/netmask the following address space: 63.39.191.192 - 63.40.192.223 On paper, I couldn't figure any way of doing it, so I tried using a network address calculator to figure it out. I inputed the first…
Ciprian
  • 31
  • 2
2
votes
1 answer

Can I rearrange dll images in my .NET app's address space to make more contiguous free space available?

alt text http://www.freeimagehosting.net/uploads/67f98ad782.png This image shows fragmentation in my app's address space. Is there any way to force the (third-party) dll images (purple) together to eliminate (or mitigate) the fragmentation? This app…
Chris
  • 3,664
  • 6
  • 34
  • 44
2
votes
4 answers

Dividing an address space by 8

My question is in regards to dealing with address spaces. I have two address spaces which are in Hex: 0x7fffff09 and 0x7fffff08. How can I know if they are divisible by 8 or 8 byte aligned ? Like what would the check look like in C or C++ code. I…
Masterminder
  • 1,127
  • 7
  • 21
  • 31
2
votes
0 answers

When you edit dll in memory, do other applications see changes?

Let's say I'm editing kernel32.dll code in memory with Cheat Engine. I want to ask, when I edit it, is there any chance that there are other programs using the same address space where that dll is loaded? Or does each process get separate copy of…
Vanilla Face
  • 908
  • 1
  • 7
  • 17