Difference between ROM and RAM..
Dear All,
As per as my knowledge difference between ROM and RAM is that:-
ROM:- Read Only memory..all I/O related files will be stored and operating system files are stored...which can't be modified
RAM:- Random access memory...data which can be repeatedly access by processor stored in this memory..
Where is my final Executable C code will be stored?
if your answer is RAM...RAM is volatile memory(Once power is off then data gets lost)...i am getting some kind of confuse can anybody clerify my question?
Thanks in Advance
Difference between RAM and ROM
Quote:
Originally Posted by
tabstop
Your executable is in RAM while it's running, certainly. But that's memory; that's not storage. All that stuff on your disk is just that: on disk.
Hai,
you told my executable code will be in RAM..but once power is off it gets erase know..do have any back up for this..do you know any good site in google to read this memory operations clearly...
Thanks for useful information...
Quote:
Originally Posted by
dwks
You have a source file, program.c. It is sitting on your hard drive. It is safe; turn off your computer, and it will remain on the disk.
You compile this program into program.exe. This file, too, is on your hard drive. It will not be deleted because you turned off your computer.
When you run program.exe, that instance of the program is in RAM. This instance will be lost if you shut down your computer.
But it's nothing to worry about, really. Your source code and the compiled .exe are just files on your computer. You know how files work. You can copy them, move them around, and delete them. But they don't generally delete themselves every time you reboot your computer.
Yes, the instance of program.exe will be lost if you shut down your computer. But so will Microsoft Word, if you happened to have that running. Any programs in memory, i.e. in RAM, any running programs at all, will be terminated if you turn off your computer! It's nothing to worry about, because you can always run them again.
But i am getting confuse with :-
1. what is difference between data and code?
2. Running and compiling?
3. What is Role of ROM? i heard that some instance we will transfer data from EEPROM to RAM to ROM what for this?