I have heard about indexing of ram,what it is ,is there any inbuilt code in ram when we purchaseit.

Dani AI

Generated

Short answer: RAM does not have an "index" or any built-in program. DRAM is just a big array of bit cells that the memory controller accesses by address. Software "indexing" (like array[i]) is simply address math performed by the CPU; there is no index table stored inside the DIMM. is right that RAM is mute when power is off; it is volatile storage and does not retain contents or code after shutdown (Volatile memory).

What a DIMM does carry is a tiny separate EEPROM called SPD (Serial Presence Detect). SPD holds module info like size, timings, and sometimes XMP profiles so the BIOS can auto-configure memory settings. That data is not executable code and is separate from the DRAM cells themselves (Serial presence detect). Some modules also have ECC, which adds extra bits for error detection/correction; again, that is not "code," just parity/check bits managed by the memory controller (ECC memory).

To see what "indexing" really means in practice, consider how an array access turns into an address:

// element i is at base + i * sizeof(int)
int get(const int *base, size_t i) {
    return base[i];
}

If you were reading about "interleaving" or "ranks/channels" in a BIOS, that is a controller optimization for spreading addresses across chips, not indexing inside the RAM. As hints, you can just use the RAM; unless you are designing hardware or tuning timings, you do not need to worry about the internals.

Recommended Answers

All 2 Replies

no, ram is mute. power off, it's dead.

hey, just use the ram don't have to bother how it works..unless you want to design something... :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.