The switches represented 1s and 0s in a single "word" of memory. The very first computers had terrible user interfaces, some only consisting of toggle switches on the front panel. Programmers spent endless hours translating hand-written math into computer instructions that the computer could execute. AssemblersĬomputers were very expensive and people were cheap. CPUs shuffle the data they are working with from main memory to registers and back again while a program executes. Main memory is typically very big and not nearly as fast as register memory. CPU registers are very fast, very small and act as scratch pads. I won't say too much about memory except that it generally comes in two different flavors: fast/small and slow/big. Mathematically, the equal sign indicates that both sides of an equation are "equivalent," however most computer languages use some variant of equals to mean "assignment." If a computer were executing that statement, it would store the results of the addition (the "3") somewhere in memory.Ĭomputers know how to do math with numbers and move data around the machine's memory hierarchy. The plus sign is the "instruction" while the numbers 1 and 2 are the data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |