Wednesday, July 7, 2010

static and dynamic memory

Static memory allocation: The compiler allocates the required memory space for a declared variable.By using the address of operator,the reserved address is obtained and this address may be assigned to a pointer variable.Since most of the declared variable have static memory,this way of assigning pointer value to a pointer variable is known as static memory allocation. memory is assigned during compilation time.
Dynamic memory allocation: It uses functions such as malloc( ) or calloc( ) to get memory dynamically.If these functions are used to get memory dynamically and the values returned by these functions are assingned to pointer variables, such assignments are known as dynamic memory allocation.memory is assined during run time.


static memory allocation versus dynamic memory allocation

In C programming, I want to know in what situations we should use
static memory allocation instead of dynamic memory allocation. My
understanding is that static memory allocation like using array is
faster than malloc, but dynamic memory allocation is more flexible.


But malloc & co give you the flexibility to grow your data structures only
as large as they need to be, and (most importantly) the decision is
deferred until runtime (which is when you actually find out how much data
you've got!).


difference between dynamic and static ram?

access memory digital-to-analog converter on a video card....Well Kaushal , Both RAM types are totallydifferent from each other .Dynamic RAM is the most common type of memory in use today. Inside adynamic is not powered. DRAM is the most common type of expandable company memory in workstations and servers today, but there are several different types of DRAM.Your computer probably uses both static RAM and dynamic.



What is memory interleaving? How is it different from Cache memory?

is usually a separate static RAM SRAM chip. The main RAM is usually a dynamic RAM DRAM chip.In addition to cache memory, one can think of RAM itself as a cache of memory for hard disk storage since all of RAMs/chipsets to improve memory performance. It is totally different from cache memory.Memoryinterleaving increases bandwidth by allowing simultaneous access to more than one chunk of memory. This improves performance.



What is the difference between the main memory RAM and the cache memory in Computers?

the preceding bytes. RAM is the most common type of memory found in computers and other devices, such as printers.There are two basic types of RAM:dynamic RAM DRAMstatic RAM SRAMThe two typesdiffer; but it is also more expensive than dynamic RAM. Both types of RAM are volatile, meaning that they lose their contents when the power is turned off....random access memory RAM is a computers volatile or temporary.



DDR2 RAM wats that mean?

DDR2 SDRAM or double-data-rate two synchronous dynamic random access memory is a random access memory technology used for high speed storage of the working data of a computer or other digital electronic device.It is a part of the SDRAM synchronous dynamic random access memory family of technologies, which is one of many DRAM dynamic random access memory implementations, and is an evolutionary.











No comments:

Post a Comment