ITEE ITEE-1 | Page 186

2 Language processor Programs created using high-level language cannot be executed as is by computers. In order for data to be converted (translated) into a machine language that computers understand, a software program known as a “language processor” is used. The typical language processors used are summarized below. Characteristics It translates entire source programs into machine language with an executable format. A complete set of machine language is executed after translation, resulting in a program that runs faster than a program translated by an interpreter. Interpreter It executes programs while translating one command at a time from the source program into machine language. The translation and execution processes repeat for each command, resulting in a program that runs slower than a program translated by a compiler. However, it is easier to detect bugs written in the program. C source program Language processor (Compiler) main () printf ( "Sunday \ n" ) ; printf ( "Monday \ n" ) ; printf ( "Tuesday \ n" ) ; Reference Cross compiler A “cross compiler” is a language processor that translates programs using a different computer than the computer actually executing the program. Machine language program 01110100・・・ Translate { “JavaScript” is a script language developed by Netscape Communications. It serves as an interpreter language that is embedded in HTML, and can be executed via a browser. It is a programming language completely separate from Java. Basic theory Compiler JavaScript Chapter 7 Type Reference 00110101・・・ 10101111・・・ 01011011・・・ 00110111・・・ } 7-2-4 Markup languages A “markup language” is used to write logical structures in text by means of tags. A “logical structure” affects textual and graphical layout, character appearance (written format), and other elements. Through the use of tags, they embed control characters into text to express information related to details such as layout, character embellishment, and hyperlinks. Two typical examples of markup languages are “HTML” and “XML.” 180