memory-address Questions
4
Solved
Let's say that I have a main class SomeManager for keeping track of instances of another class SomeClass. When SomeClass is constructed it calls a method of SomeManager passing a pointer to itself....
Snow asked 13/2, 2015 at 4:8
4
Solved
I'm trying to debug a binary that uses a lot of pointers. Sometimes for seeing output quickly to figure out errors, I print out the address of objects and their corresponding values, however, the o...
Suppositive asked 4/3, 2011 at 13:58
2
The C Standard defines lvalue as:
An lvalue is an expression (with an object type other than void) that potentially designates an object;64) if an lvalue does not designate an object when it is ev...
Accommodation asked 27/6, 2024 at 6:16
3
I'm reading the intel manual, and I see mentions of "Linear Address Space of the processor".
I'm confused as to where or what the linear address space actually is. Where in the processor ...
Xiphoid asked 25/6, 2020 at 23:24
0
I am writing a C++ tagged pointer. I have a question about whether the operations I use to implement its basic functionality cause undefined behavior:
When constructing a tagged pointer given a po...
Poeticize asked 23/1, 2024 at 3:16
11
Solved
I am reading Operating Systems Concept and I am on the 8th chapter! However I could use some clarification, or reassurance that my understanding is correct.
Logical Addresses: Logical addresses a...
Whensoever asked 13/9, 2010 at 3:43
2
Solved
I have a function where I need to pass a memory address. I only managed to find that we can print out a memory address by using println!("{:p}", number);.
How can I access the memory addr...
Undercut asked 19/9, 2019 at 12:59
6
Solved
Which format specifier should I be using to print the address of a variable? I am confused between the below lot.
%u - unsigned integer
%x - hexadecimal value
%p - void pointer
Which wou...
Hamadryad asked 29/1, 2012 at 13:49
2
Solved
I am trying to print a variable's address with lldb. However, calling print &(myVar) prints the variable's content instead of its address.
(lldb) print &(myVar)
(const string *) $18 = "hel...
Acrylic asked 19/3, 2016 at 17:38
4
Solved
I was trying to understand how Address Computation Instruction works, especially with leaq command. Then I get confused when I see examples using leaq to do arithmetic computation. For example, the...
Avent asked 6/10, 2017 at 1:36
12
Solved
When you call the object.__repr__() method in Python you get something like this back:
<__main__.Test object at 0x2aba1c0cf890>
Is there any way to get a hold of the memory address if ...
Plus asked 23/9, 2008 at 14:35
4
I am from Java background and sort of new to PHP.
I am wondering whether there is a PHP equivalent to Java's "==" operation which basically checks whether two references are referring to the exac...
Microvolt asked 9/9, 2019 at 2:4
6
My question is: How can I read the content of a memory address in python?
example:
ptr = id(7)
I want to read the content of memory pointed by ptr.
Thanks.
Renee asked 23/11, 2011 at 23:42
10
Solved
Is it possible to assign a variable the address you want, in the memory?
I tried to do so but I am getting an error as "Lvalue required as left operand of assignment".
int main() {
int i = 10;
...
Hujsak asked 26/11, 2012 at 5:14
2
Solved
In the book "Low-Level Programming: C, Assembly, and Program Execution on Intel® 64 Architecture" I read:
Each virtual 64-bit address (e.g., ones we are using in our programs)
consists o...
Antilog asked 1/10, 2017 at 4:17
4
Essentially, how does 4Gb turn into 4GB? If the memory is addressing Bytes, should not the possibilities be 2(32/8)?
Antiphlogistic asked 13/9, 2014 at 7:26
9
Solved
Please take a look at the picture below.
When we create an object in java with the new keyword, we are getting a memory address from the OS.
When we write out.println(objName) we can see a "specia...
Letaletch asked 25/12, 2009 at 13:10
2
Solved
While reading the Intel 64 and IA-32 Architectures Software Developer’s Manual, the operation section for the LEA instruction (load effective address) uses a calculation called EffectiveAddress(SRC...
Smoothtongued asked 18/4, 2016 at 21:20
2
Solved
In what I've learned so far about segmentation:
A virtual address contains a segment selector and an offset
The segment selector is used in conjunction with the GDTR to find the linear address of...
Aqueduct asked 7/9, 2018 at 12:0
2
Solved
Consider the following code:
private unsafe void Function()
{
int length;
// This line raises error CS1686, "Local 'length' or its members cannot have their address taken and be used inside...
Intercolumniation asked 7/12, 2021 at 23:43
6
Solved
I'm reading STL source code and I have no idea what && address operator is supposed to do. Here is a code example from stl_vector.h:
vector&
operator=(vector&& __x) // <-- N...
Lowercase asked 28/12, 2010 at 20:14
4
Solved
I have some experience in C and I am totally new to golang.
func learnArraySlice() {
intarr := [5]int{12, 34, 55, 66, 43}
slice := intarr[:]
fmt.Printf("the len is %d and cap is %d \n", len(sli...
Uncharitable asked 2/4, 2014 at 12:13
2
I'm learning about memories along with C language. How come in some diagrams the high addresses are located at the top of the diagram while in other diagrams the high addresses are located at...
Theodore asked 5/8, 2018 at 7:25
2
Solved
I am trying to read Intel software developer manual to gain some understanding how operating system works and these four addressing terms is confusing me . Here is what i have understood, correct m...
Tennison asked 20/7, 2020 at 14:23
2
Solved
As we know, a direct or indirect base class's of a derived class public and protected members are available in that derived one.
So I have this example:
struct Foo{int x_ = 10;};
struct Bar : Foo{}...
Forego asked 16/4, 2021 at 0:6
1 Next >
© 2022 - 2025 — McMap. All rights reserved.