|
Why do computers have byte-addressable memory, and not 4-byte-addressable memory (or 8-byte-addressable memory for 64bit)? Yeah, I see how it could be useful sometimes, it just seems inelegant and excessive. Are the advantages substantial, or is it really...
Started by willhf on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Plus, in accessing main memory, you have bursts that fill an entire cache line, ....
Processors actually do access memory in quantities of 64-bit (x86 did since Pentium or so); 64-bit processors often have a 128-bit bus.
In the early days.
|
|
Before I start with the real question, let me just say that I might get some of the details here wrong. If so, please arrest me on those as well as, or even instead of answering my question.
My question is about DLLs and .NET, basically. We have an application...
Started by Lasse V. Karlsen on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The thing is it looks like you're expecting the memory allocated by the ....
Both of the same dll can be loaded in memory at the same time.
I think you're getting confused about shared assemblies and dlls and the process memory space.
|
|
Is there a way to print out the lowest and highest memory address that an Operating system can address in c?
Started by tsubasa on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Your address space is not necessarily the physical memory you have, it's the totality process its own 4G ....
Based on your comment:
What I'm curious is "if each process gets an address space in memory on the OS.
Enlighten us.
|
Ask your Facebook Friends
|
In C++:
On stack, a simple variable is assigned a memory address so that we can use pointer to contain this memory to point to it; then is a pointer also assigned a memory address? if yes, we can have pointer of pointers now?
Thanks!
Answer Snippets (Read the full thread at stackoverflow):
Its own address to pointers....
Pointer is just a variable (memory location) that stores the address of other variables.
Stackoverflow.com/questions/316194/is-primitive-assigned-a-memory-address#316310 , the same applies.
|
|
I need to store the memory address of an Object as an NSString. Is there a special format specifier for that?
Started by HelloMoon on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Something like this would work.
Use the %p formatter to get the address of an object as a string.
|
|
Per default der Xcode debugger only shows the memory address for objects and not for primitive typs like int or float. Is there a way to see the memory address of these types somehow?
Started by Holli on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The "Address" field in the new window will be the address that local variables may well be in....
If you right-click on a row in the debugger, one option is "View As Memory" which gives you the data all around(or after) that variable.
|
|
In C#, is there a way to
Get the memory address stored in a reference type variable? Get the memory address of a variable? EDIT:
int i; int* pi = &i;
How do you print out the hex value of pi?
Started by codemeit on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In order to access the address as a number, you can cast from pointer type to IntPtr (an integer type the address of the pointer....
Have a defined memory layout and be bitwise copyable.
And the reference type has to be blittable, i.e.
|
|
I am interfacing with an ActiveX component that gives me a memory address and the number of bytes.
How can I write a C# program that will access the bytes starting at a given memory address? Is there a way to do it natively, or am I going to have to interface...
Started by chocojosh on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I don....
This way you can then use the data in managed code with * and & just like C .
You can use Marshal.Copy to copy the data from native memory into an managed array.
Will allow you to use the memory handle from the ActiveX component.
|
|
I am trying to understand the process of declaration and assignment of a primitive type at the back stage.
1) int i;
2) i = 3; for 1), on the memory stack, it assigns a space for storing an int type value named i for 2), it assigns the value 3 to the ...
Answer Snippets (Read the full thread at stackoverflow):
You can access the address like so:
int into registers if it finds that....
But for JavaAssuming you're talking about C or C++ (I can't tell), yes .
Am I correct?
Thx again.
A memory address as well just like the objects on the heap.
|
|
Please look at the picture below. When we create an object in java with new keyword, we are getting a memory address from the OS.
I wonder that, when we write out.println(objName) we can see some strings as output.
what is this output? If it is memory...
Started by uzay95 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
It often is the initial memory address create an object in java with new keyword, we are getting a memory address from the OS of the object, but the object can ....
The identity hash code represents is implementation-specific.
|