Results 1 to 3 of 3
- 04-17-2017, 02:47 PM #1
Member
- Join Date
- Apr 2017
- Posts
- 1
- Rep Power
- 0
Trying to understand bits on stack and heap
Hi,
I try to understand how a computer works and how a programming language is communicating with your computer.
Lets just say for explaining purposes everybody has windows. A computer can have a 32bit windows or a 64 bit windows.
Does that mean that on a 32bit windows there can only be 32xzero's/one's 01000010010101111001101etc. as maximum value to communicatie with the memory.
But a 64bit windows can even have 64xzero'/one's 01001110101101111110101010110101111100000111011etc . maximum value to communicate with the memory?
Am I thinking correct now, or am I totally wrong?
About programming languages. The stack can only have a maximum value of 8bits so thats 00010011 max right? So bool, float, long, byte, int. etc.
The heap can have a bigger value then 8bits, but what value is this? Between 1-32bit on a 32bit windows machine and lets say between 1-64bits on a 64bit windows machine?
Can an object for example also have a random number like 10bits or 26bits on the heap? Or has it always standard values like 8, 16, 32 48, or 64bit.
Kind regards, Jimme
- 04-17-2017, 02:57 PM #2
Re: Trying to understand bits on stack and heap
Moved from Advanced Section - This is generic computer stuff.
Last edited by Norm; 04-17-2017 at 07:35 PM.
If you don't understand my response, don't ignore it, ask a question.
- 04-17-2017, 06:46 PM #3
Senior Member
- Join Date
- Jan 2013
- Location
- Northern Virginia, United States
- Posts
- 6,226
- Rep Power
- 15
Re: Trying to understand bits on stack and heap
For you first topic, you should read up on computer architectures. For the second topic you should read up on language design and stacks vs heaps. There is quite a bit written on these topics so there is no point in rehashing it here.
Regards,
JimThe JavaTM Tutorials | SSCCE | Java Naming Conventions
Poor planning on your part does not constitute an emergency on my part
Similar Threads
-
Stack and Heap memory object allocation
By sandybo in forum New To JavaReplies: 3Last Post: 01-13-2017, 02:13 AM -
Heap and Stack, equality testing.
By Fatz in forum New To JavaReplies: 0Last Post: 05-18-2012, 10:53 PM -
Heap or Stack
By Metaferia in forum New To JavaReplies: 3Last Post: 01-17-2011, 07:14 PM -
The Stack and the Heap
By al_Marshy_1981 in forum New To JavaReplies: 9Last Post: 06-25-2010, 10:45 AM -
Help with heap and stack
By coco in forum Advanced JavaReplies: 1Last Post: 08-06-2007, 03:21 PM
Bookmarks