Using the information in the Lectures (Computer Instructions, aka Programs) presentation, answer the following:
•Name and describe the only language that computers understand and explain how the instructions that people write for computers get into that form Computers only understand one language and that is the machine language (binary code). This type of language is represented in a two digit sequence zero (0) or one (1). Computers use this machine language to represent every task that they perform by means of electrical current that go through switches (capacitors). If a switch has current it means that the switch is “ON” in machine language this will be represented as the number “one”. If there is no current going through the switch then it is considered to be “OFF” and represented in binary code as the number “zero”. Now, the way people communicate with computers is not directly by the language that the computer understands (machine language), but instead a set of instructions have to be written in a different language that specializes in writing programs such as C++ or Visual Basic. These types of languages at the same time have to be translated into machine language either through compilers or interpreters. Compilers translate all the source codes (C++, Visual Basic, etc. language) in a program to machine language before it’s executed. Then after that the compiled program (in this case machine language) is executed by the Central Process Unit (CPU). At this time the machine language can be used every time the program is run unless the source code changes, in which then the machine language should be recompiled. Like compilers, interpreters also translate the source code into machine language, but they only translate each line of the code as it is executed. Difference is also that every time the program is run each line must be translated again. Which in comparison to compilers, interpreters are much slower.
You May Also Find These Documents Helpful
-
1. What is machine code? Why is it preferable to write programs in a high level language such as C++?…
- 743 Words
- 3 Pages
Satisfactory Essays -
What both translates and executes the instructions in a high level language program? What was the first programming language designed to perform complex math functions? Interpreter.Fortran…
- 738 Words
- 3 Pages
Good Essays -
A: The machine code is the language which the computer hardware understands and executes. It is preferable to write programs in a high level language such as C ++ because it is much easier to understand and learn this machine language.…
- 1077 Words
- 5 Pages
Satisfactory Essays -
computer can transmit data in 1's and 0's on and off also called digital or binary form.…
- 650 Words
- 2 Pages
Satisfactory Essays -
To apply the stored-program concept, central processing unit (CPUs) are designed to recognize instructions encoded as bit patterns. This collection of instructions along with the encoding system is called the machine language. An instruction expressed in this language is called a machine-level instruction or, more commonly, a machine instruction.…
- 458 Words
- 2 Pages
Good Essays -
Machine language consists of a sequence or pattern of bits that are all zeros & ones. Each combination or sequence is an instruction to the computer and is the only language a computer understands. However, this is a very difficult language for humans to read or write (Venit &…
- 1318 Words
- 6 Pages
Powerful Essays -
Assembly language enables programmers to relate op codes using symbolic names in place of numbers to perform an instruction or input a piece of data. Programmers can inscribe op codes using purposeful words like JUMP, CLEAR, and ADD as an alternative to cryptic binary codes consisting of series of 0s and 1s. An example of assembly language, machine language and its meaning are listed in the book called, “Invitation to Computer Science” (Schneider & Gersting, 2013, pp. 285, fig. 6.5). In figure 6.5, assembly language is clearly easier to comprehend than machine language, which makes assembly language user friendly.…
- 2002 Words
- 9 Pages
Better Essays -
Machine code is the language which the computer hardware understands and executes. Instructions in a high-level language are closer to a natural language, such as English and therefore are easier to understand and learn than machine language.…
- 843 Words
- 5 Pages
Good Essays -
2. Languages that let you use a vocabulary of descriptive terms, such as read, write, or…
- 723 Words
- 5 Pages
Satisfactory Essays -
Copyright © 2012 Pearson Education, Inc. 0-5 Terminology • Machine instruction: An instruction (or command) encoded as a bit pattern d) d d tt recognizable by the CPU • Machine language: The set of all instructions recognized by a machine Copyright © 2012 Pearson Education, Inc. 0-6 3 Machine Language Philosophies • Reduced Instruction Set Computing (RISC) – Few, simple, efficient, and fast instructions – Examples: PowerPC from Apple/IBM/Motorola and ARM • Complex Instruction Set Computing (CISC) –…
- 783 Words
- 4 Pages
Satisfactory Essays -
Computers record the ideas they work with electronically, as bits, and these bits represent either a 1 or a 0…
- 672 Words
- 3 Pages
Good Essays -
which is the tiny data processor in the computer, and then the program could be written…
- 1671 Words
- 7 Pages
Good Essays -
Most programming languagessuch as C, C++, and Fortranuse compilers, but somesuch as BASIC and LISPuse interpreters. An interpreter analyzes and executes each line of source code one-by-one. Interpreters produce initial results faster than compilers, but the source code must be re-interpreted with every use and interpreted languages are usually not as sophisticated as compiled languages.…
- 4020 Words
- 17 Pages
Powerful Essays -
A programming language is a system of signs used to communicate a task/algorithm to a computer, causing the task to be performed. The task to be performed is called a computation, more broadly, a computer language typically embodies a particular programming paradigm. A Programming Paradigm is a model for a class of Programming Languages that share a set of common characteristics. Programming language paradigms are various systems of ideas that have been used to guide the design of programming languages. It is a way of conceptualising what it means to perform computation and how task are to be carried out on a computer, should be structured and organised.…
- 2576 Words
- 11 Pages
Powerful Essays -
In the introductory section some of the elemental concepts regarding computer systems are mentioned, along with the concepts of the assembly language itself, and…
- 5117 Words
- 21 Pages
Good Essays