mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Lounge

Reply
 
Thread Tools
Old 2012-11-20, 02:13   #1
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

DB316 Posts
Default Can a RAM-less computer run?

Mind you, when I ask this question, I'm not talking about a general purpose computer. But I am talking about a general purpose cpu.

Basically I'm wondering if it's possible to boot a cpu and, without having any RAM, and without thrashing the hard drive or flash drive, have it do useful work. In my head I have a mental vision of a cd that boots into truly bare-bone Linux and runs distributed.net stuff, but you can come up with your own idea if you want.
jasong is offline   Reply With Quote
Old 2012-11-20, 03:11   #2
axn
 
axn's Avatar
 
Jun 2003

23×683 Posts
Default

No.
axn is offline   Reply With Quote
Old 2012-11-20, 03:34   #3
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

DB316 Posts
Default

Quote:
Originally Posted by axn View Post
No.
Care to explain why not?
jasong is offline   Reply With Quote
Old 2012-11-20, 04:33   #4
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

1E0C16 Posts
Default

When your RAM-less computer adds 1 and 2 to get 3, from where is it going to get the 1 and the 2 if there's no RAM?
cheesehead is offline   Reply With Quote
Old 2012-11-20, 04:35   #5
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
"name field"
Jun 2011
Thailand

41·251 Posts
Default

Depends how you define RAM. Turing machines (for example) have no RAM (in the classical definition, as memory with a random access). There are also a couple of Markov algorithms which can do a lot of useful things without storing any temporary variables/values.

edit: @cheesehead, crosspost: that is a bad example, you need no ram for it, those are inputs and outputs only, no need to store anything.

Last fiddled with by LaurV on 2012-11-20 at 04:37
LaurV is offline   Reply With Quote
Old 2012-11-20, 04:38   #6
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

22×3×641 Posts
Default

Quote:
Originally Posted by LaurV View Post
Depends how you define RAM. Turing machines (for example) have no RAM (in the classical definition, as memory with a random access).
So, the RAM-less computer is going to have that little tape on which the Turing CPU writes and reads marks (which isn't RAM because its access is sequential-only)?

Quote:
There are also a couple of Markov algorithms which can do a lot of useful things without storing any temporary variables/values.
Not really "general-purpose", though.

Last fiddled with by cheesehead on 2012-11-20 at 05:01
cheesehead is offline   Reply With Quote
Old 2012-11-20, 05:29   #7
axn
 
axn's Avatar
 
Jun 2003

23·683 Posts
Default

Quote:
Originally Posted by jasong View Post
Care to explain why not?
Quote:
Originally Posted by LaurV View Post
edit: @cheesehead, crosspost: that is a bad example, you need no ram for it, those are inputs and outputs only, no need to store anything.
The CPU reads an instruction from RAM**, decodes it and executes it. For the execution, it needs to read input(s) and write output(s). For many instructions, the input and output can be from registers -- no RAM yet. But eventually, some of it must come from/go to RAM for it to be useful.

When loading and executing a program from CD, it has to be first loaded into RAM -- the CPU does not know how to execute things from peripherals.

Without RAM, today's general purpose CPU cannot work. Period. End of.

**Initial boot code actually comes from ROM.

Last fiddled with by axn on 2012-11-20 at 05:29
axn is offline   Reply With Quote
Old 2012-11-20, 05:34   #8
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default

Quote:
Originally Posted by axn View Post
The CPU reads an instruction from RAM**, decodes it and executes it. For the execution, it needs to read input(s) and write output(s). For many instructions, the input and output can be from registers -- no RAM yet. But eventually, some of it must come from/go to RAM for it to be useful.

When loading and executing a program from CD, it has to be first loaded into RAM -- the CPU does not know how to execute things from peripherals.

Without RAM, today's general purpose CPU cannot work. Period. End of.

**Initial boot code actually comes from ROM.
What about the cache though? In my desktop, there's 8MB of L3 cache.

(I'm guessing that even if you had an OS that could run cache-only, something in the hardware of the motherboard and/or CPU requires RAM...)

PS @jason even if the software and hardware allowed it, you couldn't really do anything useful; even a current LL test would take up the entire 8 MB that I mention above.

Last fiddled with by Dubslow on 2012-11-20 at 05:35
Dubslow is offline   Reply With Quote
Old 2012-11-20, 05:43   #9
axn
 
axn's Avatar
 
Jun 2003

23×683 Posts
Default

Quote:
Originally Posted by Dubslow View Post
What about the cache though? In my desktop, there's 8MB of L3 cache.
Cache is, by definition, not visible to software. i.e., no way for software to specify to read/write data to cache (instead of RAM). Any data in cache must eventually come from/go to RAM.
axn is offline   Reply With Quote
Old 2012-11-20, 05:54   #10
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

22×3×641 Posts
Default

Quote:
Originally Posted by LaurV View Post
edit: @cheesehead, crosspost: that is a bad example, you need no ram for it, those are inputs and outputs only, no need to store anything.
No need to store anything?

From where, exactly, are you pulling the "1" and "2" values (you do realize that those are just stand-ins for actual data values, don't you -- that this isn't intended to be literally 1+2=3 with no variation in data values?) and to where, exactly, are you putting the "3" result so that it can be useful?

Would it be clearer if I'd used "addend1", "addend2" and "sum"?

Last fiddled with by cheesehead on 2012-11-20 at 05:57
cheesehead is offline   Reply With Quote
Old 2012-11-20, 07:14   #11
aketilander
 
aketilander's Avatar
 
"Åke Tilander"
Apr 2011
Sandviken, Sweden

23616 Posts
Default

Depends how you pose the question. If the question is: "Is there a simple way to ...?" The answer is no. If the question is more like a theoretical question, "Would it be possible ...?" I am not sure, but it would involve to write a new BIOS and a new OS, then you might use the GPU and the memory on the Graphic card or maybe remotely on another computer so why would you like to do something as complicated as that when RAM is so cheap, but I don't really think that would work either since if I remember it rightly there is a part of the BIOS which is imprinted in the hardware, at least in the old days it used to be only hardware. Nowadays I think the BIOS is EEPROM but I think there are limitations of what you can do.

Last fiddled with by aketilander on 2012-11-20 at 07:23
aketilander is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Old Computer Primeinator Information & Answers 21 2011-12-12 22:05
New computer ???s c10ck3r Hardware 12 2011-04-30 23:53
Not my computer RichardB Information & Answers 2 2010-09-04 03:21
New Computer Housemouse Hardware 16 2008-06-09 21:04
help ~ what's my computer doing! merlinh Software 2 2004-05-09 21:50

All times are UTC. The time now is 04:08.


Fri Jul 7 04:08:59 UTC 2023 up 323 days, 1:37, 0 users, load averages: 1.60, 1.54, 1.36

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔