Computer Science 9608 (Notes) Chapter: 1.5 System software

Topic: 1.5.4 Language translators The final type of system software that you need to know is translator software. This is software that allows new programs to be written and run on computers, by converting source code (human readable) into machine code. There are three types that we'll cover in a lot more detail shortly: Assembler - converts assembly code into machine code Interpreter - converts 3rd generation languages such as JavaScript into machine code one line at a time Compiler - converts 3rd generation languages such as C++ into machine code all at once Assembler An assembler translates assembly language into machine code. Assembly language consists of mnemonics for machine opcodes so assemblers perform a 1:1 ratio translation from mnemonic to a direct instruction. For example: 0T

0T

0T

0T

LDA #4 converts to 0001001000100100 30T

0T3

0T

0T

0T3

Conversely, one instruction in a high level language will translate to one or more instructions at machine level. Advantages of using an Assembler Very fast in translating assembly language to machine code as 1 to 1 relationship Assembly code is often very efficient (and therefore fast) because it is a low level language Assembly code is fairly easy to understand due to the use of English-like mnemonics

Disadvantages of using Assembler Assembly language is written for a certain instruction set and/or processor Assembly tends to be optimized for the hardware it's designed for, meaning it is incompatible with different hardware Lots of assembly code is needed to do relatively simple tasks, and complex programs require lots of programming time

Page 1 of 4

Computer Science 9608 (Notes) Chapter: 1.5 System software

Topic: 1.5.4 Language translators Compiler A Compiler is a computer program that translates code written in a high level language to a lower level language, object/machine code. The most common reason for translating source code is to create an executable program (converting from a high level language into machine language). 0T

0T

0T

0T

0T

0T

Advantages of using a compiler Source code is not included, therefore compiled code is more secure than interpreted code Tends to produce faster code than interpreting source code Produces an executable file, and therefore the program can be run without need of the source code

0T

0T

Disadvantages of using a compiler Object code needs to be produced before a final executable file, this can be a slow process The source code must be 100% correct for the executable file to be produced

Interpreter An interpreter program executes other programs directly, running through program code and executing it line-by-line. As it analyses every line, an interpreter is slower than running compiled code but it can take less time to interpret program code than to compile and then run it — this is very useful when prototyping and testing code. Interpreters are written for multiple platforms, this means code written once can be run immediately on different systems without having to recompile for each. Examples of this include flash based web programs that will run on your PC, MAC, games console and Mobile phone. 35T

Advantages of using an Interpreter Easier to debug(check errors) than a compiler Easier to create multi-platform code, as each different platform would have an interpreter to run the same code Useful for prototyping software and testing basic program logic

Disadvantages of using an Interpreter Source code is required for the program to be executed, and this source code can be read making it insecure Interpreters are generally slower than compiled programs due to the per-line translation method.

Page 2 of 4

Computer Science 9608 (Notes) Chapter: 1.5 System software

Topic: 1.5.4 Language translators

Page 3 of 4

Computer Science 9608 (Notes) Chapter: 1.5 System software

Topic: 1.5.4 Language translators Few of the high-level language programs may be partially compiled and partially interpreted, such as Java. Typical Java environment consists of two programs: Java compiler and Java Virtual Machine. Java compiler takes the source code written in Java programming language, together with precompiled libraries, and compiles programs written in Java programming languages into class files containing Java byte-code. The Java Virtual Machine takes the byte code prepared by the Java compiler and executes it. The byte-code itself is platform-independent; it is the responsibility of the Java Virtual Machine implementation to execute the program in the byte-code form on the real computer. So, the java code is partially compiled for optimization by the programmer. The user runs the code on a Java virtual machine on their computers that interprets the java code for the users' computer specific architecture.

Page 4 of 4

1.5.4 Translator software.pdf

based web programs that will run on your PC, MAC, games console and Mobile phone. Advantages of ... translation method. ... 1.5.4 Translator software.pdf.

376KB Sizes 3 Downloads 183 Views

Recommend Documents

/:;| |--
Jul 11, 2006 - Foreign Application Priority Data. O?ice Action (Japan Patent Application No. ... 1 d d . . 4,090,096 A. 5/1978 Nagami gate eectro e o 't e.

/ :3] |—- 154
Feb 12, 2009 - 25, 2004 along with Australian Search Report dated Apr. 27, 2004 (8 pages). (Continued). Primary Examiner * Vibol Tan. (74) Attorney, Agent ...

Translator types Pollinia.pdf
Visit their website to find out. ○ (Article + Infographic map) Price of Water 2015: Up 6 Percent in 30 Major U.S. Cities; 41 Percent Rise. Since 2010 Circle of Blue.

Descargar multilizer pdf translator full
samsung.Descargar multilizer pdftranslator full.descargar gratis reproductor dvd de mediamatics.Descargar multilizer pdftranslator full.descargar. nitro pdf de ...

translator types Pollinia II.pdf
discreet Sections. Hoya mitrata Kerr. Whoops! There was a problem loading this page. translator types Pollinia II.pdf. translator types Pollinia II.pdf. Open. Extract.

Descargar multilizer pdf translator portable
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Descargar ...

CIVILDIARIO 154.pdf
... MEHECHA BUSTOS 27-oct.-15. 064515 CESACIÓN DE EFECTOS CIVILES MARIA CRISTINA AMAYA FUENTES JORGE GERMAN MOLINA CHIRIVI 27-oct.

Translator types Pollinia III.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Translator types ...

man-154\filem-blue-malayu.pdf
phone for chatting and chatting all points, you can in some cases open up and read the soft file of. the Filem Blue Malayu Of course, it's unless your phone is readily available. You can also make or. wait in your laptop or computer that reduces you

man-154\melayu-lucah-download.pdf
Page 2 of 5. MELAYU LUCAH DOWNLOAD PDF. Melayu Lucah Download. Offer us 5 mins as well as we will certainly show you the very best. book to check out today. This is it, the Melayu Lucah Download that will be your finest selection for. far better read

One Piece Chapter 154.pdf
Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. One Piece Chapter 154.pdf. One Piece Chapter 154.pdf. Open.

mooc-certificate-final 154.pdf
Professor Ian H. Witten. Department of Computer Science. University of Waikato. Hamilton, New Zealand. 28th May, 2015. provided by the University of Waikato.

154-174-179.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. 154-174-179.pdf.

154 Affi of Bergere.pdf
Loading… Whoops! There was a problem loading more pages. Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. 154 Affi of Bergere.pdf. 154 Affi of Berg

man-154\deshi-sax.pdf
PDF Ebook : Deshi Choti With Picture. 15. PDF Ebook : Www Deshi Aunty Hot Photo Com. 16. PDF Ebook : Deshi Land Chut Photo. 17. PDF Ebook : Deshi ...

23 154 09 article final.pmd
zero adoption in five IPDM technologies. In chillies ... In vegetables, adoption was 100 per cent in few technologies while .... ETL based insecticide application.

25 Xbox Gift Cards 154
This website, like most others, uses cookies in order to give you a great online experience. ... Generator Online Xbox Gift Cards score, Code Generator Download Xbox ... SuperCode Generator Xbox Gift Card Sale Live Free Game Generator ...

154-180-184.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. 154-180-184.pdf.

488>Where to Buy; 'IdiomaX Mobile Translator' by ...
The IdiomaX Mobile Translator converts your Pocket PC or Smartphone into a ... Windows Mobile 2003 SE, Windows Mobile 5.0 and Windows Mobile 6.0.

DIY corpora. The WWW and the translator
Table 1: Growth of languages on the Web (data from Grefenstette and .... folders" on the hard disk of their computers, in order to use them as a corpus to be ...