ProgrammingHardwareand Software
Hardware and Software Programming
COMP104Lecture2/Slide2Hardware and SoftwareWhyshouldwebotherwithhardwarewhile we are havinga programming(software)class?software“drives”hardwarehavingsomeunderstandingonh/whelps us produce more efficientprograms
COMP104 Lecture 2 / Slide 2 Hardware and Software Why should we bother with hardware, while we are having a programming (software) class? software “drives” hardware having some understanding on h/w helps us produce more efficient programs
COMP104Lecture2/Slide3Hardware000Fourcomponentsofacomputersystem:CPU-centralprocessingunit-Makes decisions,performscomputations,anddelegatesinput/outputrequestsMemory-StoresintormationInput devices-Gets information fromthe userto thecomputerOutput devices-Sends informationfromcomputerto theuser
COMP104 Lecture 2 / Slide 3 Four components of a computer system: CPU - central processing unit − Makes decisions, performs computations, and delegates input/output requests Memory − Stores information Input devices − Gets information from the user to the computer Output devices − Sends information from computer to the user Hardware
COMP104Lecture2/Slide4HardwarePrimary and SecondaryMemoryOutputInputDevicesDevicesCPUMMXintelinsidepentium'll
COMP104 Lecture 2 / Slide 4 Hardware Memory CPU Input Devices Output Devices Primary and Secondary
COMP104Lecture2/Slide5MMXintelCPUinsidepentium'llCorecomponent ofthe computerArithmetic/Logical Unit (ALU)-performsarithmeticoperationsControl Unit-decodes andexecutes instructionsData and instructions are encoded in the binarynumbersystem01101101110011110001CPUExamplesPentiumintelPENTIURLPROPentium Pro
COMP104 Lecture 2 / Slide 5 CPU Core component of the computer Arithmetic/Logical Unit (ALU) − performs arithmetic operations Control Unit − decodes and executes instructions Data and instructions are encoded in the binary number system 0110 1101 1100 1111 0001 CPU Examples Pentium Pentium Pro