Ok, I have a real dumb question. When a program is run, it CANNOT do so from within the hard drive - right? Then from where? RAM??? These old books keep referring to "core" memory versus "disk". Where is this core memory?
Ok, I have a real dumb question. When a program is run, it CANNOT do so from within the hard drive - right? Then from where? RAM??? These old books keep referring to "core" memory versus "disk". Where is this core memory?
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
Normally when a program is launched, it is loaded into RAM.
The terms core memory v disk memory may be referring to the technique of using the disk as if it were RAM. Windows does this all the time - it's swap file. This is now called virtual memory rather than disk memory.
Depending on how old your book is, it may, indeed, be refering to core memory. Core memory was a solid state RAM based on very small ferrite toroids which could be magnetised. The magetisatin sense was read back via a sense wire. The core memory modules were quite bulky by todays standards, but were a great leap forward at their time, (1960's). I have a core module from a Control Data Cyber 605 computer. It is a 4k module and the size of a show box.
Core memory still has some uses, it is, for example, static, i.e. you can pull the power off it, and when reapplied, it will still contain it's information. Another useful feature for some people, is that it is nuclear hard, i.e. the contents retain fidelity after the electro magnetic pulse of a nuclear exlosion.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
Hmmm...thanks. Ok Davros, let's clarify - so you CAN run a program directly within the hard drive? That seems counter - intuitive. If you are referring to swapping pages, that is different. The pages on the hard drive must be placed in the core/RAM memory before they can be accessed, correct? An if so, why? Is it because the seek time is intolerably slow to feed to the CPU, or is that there is an actual hardware inability to do so ( run the program from disk )?
[edit] BTW Adrianxw: yes this book is dated 1974(!) but, I should add, it is an excellent book. These old-school programmers sure took programming seriously! Unlike todays brand of impatient and eccentric coders, these guys could even write programs without mnemonics and using absolute addressing to boot! Truly amazing...[/edit]
Last edited by Sebastiani; 07-28-2002 at 10:46 AM.
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }