You could, with some effort, design a system that contained no RAM. Load your software from ROM (or storage) and do everything in registers or on cache. Such a system would have exceptionally narrow use and given today's RAM prices be a bit pointless. An off-the-shelf laptop will not function without some onboard memory.
Your real question is more likely "How do I get information off of a computer that will not boot" and that's easy. Disassemble it, remove the drive, and connect it to an external drive case.
Note, however, that any computer old enough that you can't just get $20 worth of working RAM for it will have an ATA ( regular ATA, not SATA ) drive. This interface is nearly extinct today, so you will also need to find a drive case with an ATA card as well as a full-size to laptop-size adapter. I have one that I bought in 2000, and I keep a couple of old cases around just for this purpose.
23
I'm not sure if a CPU can even function at all without RAM, that may be a good question for Computer Science.SE. What I do know for sure is that you won't get anywhere if you don't even manage to get past the BIOS.
– None – 2014-08-31T08:18:19.037Even for 'OSes' specifically designed to test ram, some ram is going to be used. There's generally some warning of bad ram in the bios, either through beepage or a error message. In addition to being a software req, which is off topic here, this is quite frankly impossible. – Journeyman Geek – 2014-08-31T10:02:27.270
Hardware the computer cannot operate without RAM. The CPU fetches it’s instructions and data from RAM so without it it cannot execute any normal instruction. – bolov – 2014-08-31T18:26:00.887
12@AndréDaniel a CPU has cache which, from a CS perspective, is also random access memory. So in theory you don't need additional RAM modules. But in practice I doubt that the x86 architecture allows this. – Philipp – 2014-08-31T18:41:52.443
30All these arguments about using the processor cache are of dubious validity, since, at least on x86, the cache is not a memory you can access directly. Your code always refers to RAM, but the processor automatically manages its caches so that it doesn't actually have to fetch the data in RAM for most frequently accessed data. But again, there's no assembly instruction to say "store this in cache" "write this in cache", there are registers and there is main memory (with all its weird accessing modes), period. – Matteo Italia – 2014-08-31T21:43:46.577
3(OTOH, in theory you could exploit other RAM (e.g. video RAM) or peripherals mapped in the physical address space) – Matteo Italia – 2014-08-31T21:50:22.883
13Modern x86 CPUs let you put the on-die cache in "Cache as RAM" mode - I think some MSR's need to be set to do that. This may apply for some ARM CPUs as well. Cache on modern CPUs is in greater quantity than what your first PCs could have as maximum memory. On a PC, the firmware still won't boot without RAM present, though. You'd need a custom firmware or something not a PC platform. – LawrenceC – 2014-09-01T00:08:15.150
2If you boot DOS on a modern CPU, the 640KB it needs will fit in cache. As a result, not a single cache line will be evicted to RAM. The bigger problem is the flawed assumption in the question that you need an OS to get to the BIOS. It's the other way around. – MSalters – 2014-09-01T08:18:23.900
@MSalters Does the BIOS need any RAM? or it can start even if the RAM is not functioning (assume extreme case, no RAM In slot)? – Suvarna Pattayil – 2014-09-01T09:11:08.793
1NO IT IS NOT POSSIBLE – user3459110 – 2014-09-02T18:50:37.893
1@AwalGarg It is possible. You may use memory that can only be accessed sequentially. This has in fact been a much older concept than Random Access Memory. The Turing Machine is based upon this. – SpaceTrucker – 2014-09-03T09:46:16.967
@AndréDaniel I doubt it would be all to welcome on CS since this question seems to be about electronics. – G. Bach – 2014-09-03T13:57:17.643
@G.Bach this question seems to be about theory, ie. can a CPU function without memory rather than how it would practically do that (on the electronic and physical level). – None – 2014-09-03T14:13:56.953
@AndréDaniel To me it seems one would be misconstruing the question if we interpret it like that; we could formalize that interpretation of the question as "is there a TM that uses O(0) space and runs an OS", and the trivial answer would be "no". Replacing O(0) by O(1) gives the - again trivial - answer of "yes". – G. Bach – 2014-09-03T14:16:09.600
@G.Bach fair enough, you seem to know way more about this subject than I do. – None – 2014-09-03T14:18:37.680
@AndréDaniel The original question was related to a laptop which I have and does not boot . The question was originally titled similar to "Is there a OS which doesnt not need RAM ?" . This was to be used for testing – Suvarna Pattayil – 2014-09-03T14:49:03.487
@VusP indeed, I was talking about the "can a CPU run without RAM?" being a good question for ComputerScience.SE, not this actual question from the author. – None – 2014-09-03T14:50:11.073
@AndréDaniel Yes that would be a good question :) – Suvarna Pattayil – 2014-09-03T14:52:33.700
2@MatteoItalia, not really. As ultrasawblade hinted at, modern CPUs in fact, do have to power on in a mode where they use the cache as ram, since they do not yet have access to ram. The bios first has to probe the ram and configure the memory controller before it can access the ram, and to do that, it makes use of the cache as temporary ram. Of course, it insists on completing this process before it will load an OS, and if it can't find any ram it will stop and emit a post beep code... 6 beeps iirc. – psusi – 2014-10-29T18:31:16.467
Cache-as-Ram (no fill mode) Executable Code – phuclv – 2018-08-01T01:28:04.200