What is a compiled language. Explanatory language and scripting language

2010-03-12  来源:本站原创  分类:Tech  人气:209 

The computer can not directly understand the high-level language, can only understand machine language directly, it must be high-level language should be translated into machine language, the computer can be value-based high-level language program.

There are two ways of translation, one compilation, one is explained. Only two ways to translate different periods of time. Compiler-based language to write programs before execution, requires a special compilation process, the program compiled into machine language file, such as exe file, after the run, then do not need to re-translate directly using compile the results on the line (exe file) because the translation only do once, run-time does not need translation, so the compiler-based language programs and high efficiency.

Interpretation is different, explanatory language does not need to compile and save a procedure, explanatory language translation only when running the program, such as basic explanatory language interpreter can be specialized to have a direct implementation of the basic program, each statement is is executed when it is translated. Such explanatory language is necessary to perform a translation of each one, the efficiency is low.

What is a scripting language?

1. Scripting language (JavaScript, VBscript, etc.) between HTML and C, C + +, Java, C # and other programming language to.
HTML is commonly used text formatting and links. The programming language is typically used to machine a complex series of instructions issued.
2. Scripting language and programming language has many similarities with the programming language of its function more resemble some, it also involves the variable. And programming languages is the biggest difference between programming language syntax and rules are more stringent and complicated.
3. And the relationship code: Script is a language, the same by the program code.
Note: The scripting language generally corresponding to interpreted scripting engine. They generally require the interpreter to run. JAVASCRIPT, ASP, PHP, PERL is a scripting language. C / C + + compiler, link can be formed independently of the exe file.
4. Scripting language is an interpreted language, such as vbscript, javascript, installshield script so that it does not like the c \ c + +, etc. can be compiled into a binary code to the form of executable file.
Scripting languages do not compile, can be directly used by the interpreter to interpret.
5. Scripting languages are usually in text form, similar to a command.
For example, if you build a program, called aaa.exe, you can open. Aa file for the extension.
You for. Aa file specifies a set of written rules (grammar), when someone has prepared. Aa file, your application written to use such rules to understand people's intentions and to respond. Well, this is a set of rules scripting language.

JAVA language

java is very special, java program also needs to be compiled, but did not directly compiled as machine language, but compiled as byte code, and then explain the way of implementation of the byte code. Java can be compiled both can also be interpreted. By the compiler, Java programs can be translated into an intermediate code - known as bytecode - Java interpreter can be interpreted platform-independent code. Through the interpreter, each Java byte instructions to be analyzed, and then run on a computer. Just compile time, runtime interpreted. The following diagram shows how it works:

Java byte code can run as a Java Virtual Machine (Java VM) on the machine code instructions. Each of the Java interpreter, whether it is Java development tools, or you can run Java applets in Web browsers, is a kind of Java VM instance. JavaVM can also be implemented in hardware.

Java byte code to make "write once, run anywhere" possible. Can be any Java platform compiler to compile Java byte code programs. This byte code can run on any Java VM. For example, the same Java program can run on WindowsNT, Solaris, and Macintosh on.

Java Platform

Platform is running a hardware or software environment. Java platform and most of the other platform The difference is that it is running on other hardware platforms, software-based platform. Most of the other platform is a combination of hardware and operating system.

Java platform consists of two parts:

Java Virtual Machine (Java VM)
Java Application Program Interface (Java API)
We have introduced the Java VM, it is based on Java platform can be ported to various hardware-based platforms. Java API is a collection of software components, they provide many useful features, such as graphical user interface (GUI). Java API is grouped into related components of the library (package).

The following diagram describes a run in the Java platform Java programs, such as application (application) or a small application (applet). Shown in the display, JavaAPI and the Java VM program separate from the hardware dependent.

As a platform-independent environment, Java code slower than native. However, smart compilers, well modulated real-time bytecode interpreter and compiler without sacrificing portability of Java's performance under the conditions close to local code.

  • What is a compiled language. Explanatory language and scripting language 2010-03-12

    The computer can not directly understand the high-level language, can only understand machine language directly, it must be high-level language should be translated into machine language, the computer can be value-based high-level language program. T

  • JDK6 new features: Scripting language support (Scripting) 2010-03-29

    Overview JDK6 increased its support for scripting languages (JSR 223), theory is the scripting language to compile into bytecode, so scripting languages can also enjoy the Java platform, many advantages, including portability, safety, etc. In additio

  • LUA scripting language entry 2010-03-28

    LUA scripting language entry Preliminary Study Lua Programming: Mu Feng (Second Life members) This article comes from CSDN blog: http://blog.csdn.net/skyremember/archive/2008/10/17/3089447.aspx In this article, I want to tell you how to Lua programmi

  • ─ ─ the way programmers to learn C language and proficiency in C language 2010-04-18

    ─ ─ the way programmers to learn C language and proficiency in C language ─ ─ the way programmers to learn C language to learn C language is not an overnight thing, but it does not take decades to master. What is the minimum price to learn and master

  • How to use PHP as a scripting language Shell 2010-12-03

    Many people may have thought about using PHP to write some procedures like regular letters, but no way to time the implementation of PHP; We all know, PHP is a very good dynamic web development languages (speed fast, short development cycle ... ....)

  • C-based scripting language development technology-csp 2011-05-01

    What is eybuild http://www.eybuild.com/develop/index.htm eyBuild, is short for Easy Build, which is the CSP (C Language Service Page) development kit in general. eyBuild WEB applications on embedded devices is the ideal development tool, with a WEB s

  • sql language has no such C language switch case statement?? case 2010-06-22

    sql language has no such C language switch case statement? ? No, with the case when instead of on the line. For example, the following statement shows the Chinese years select getdate () as date, case month (getdate ()) when 11 then '11' when 12 then

  • JScript.VBScript use the message box. Dialog - scripting language 2010-08-28

    The use of JScript message box ------------------------------------- Use warnings, tips and warnings can be used to confirm, confirm and prompt a message box to get user input. The message box is a window object's interface methods. As the window obj

  • Python scripting language is very useful 2010-12-25

    Python scripting language ---------------- very useful Today, do not know which nerve short-circuit, even started to pay attention Python. Internet casually looked down a document, think this thing is too practical it! Might be possible to carefully

  • Programming Language Design of Road -2 - language of the positioning and settings 2010-06-02

    Currently I have a preliminary set of programming language that I set some VM and JIT-based technology 1, the source code will be compiled into a module. Can be packaged into a separate file, similar to the JAR, it is assumed known AR 2, the user can

  • What scripting language is 2010-08-30

    Script (script) is to use a particular description language, based on the format of a certain executable file, also called macro or batch file. Script usually called by the application and implementation of the interim. Various types of scripts is no

  • Go google language abandon java??? Android upper application or language ~ ~ go with Go About Language 2010-09-04

    Summary Go languages is Google's second 2009 release open-source programming language. Go language specifically for multi-processor system application programming optimized, the program can use the Go compile comparable C or C + + code speed, and mor

  • Linux, compile and install Lua scripting language environment 2011-05-01

    Lua is undoubtedly an air of the East - "simple but not simple," I like it. My development machine is: RedHat Linux AS 5 First, Lua's official website (http://www.lua.org/) Download the latest release package (PS: I downloaded the lua-5.1.4.tar.

  • Found a J2me scripting language 2010-09-08

    Previously been concerned about the kahlua, accidentally discovered today there is a small language Hecl, first make a mark, you can learn the next script compile, interpret, and how to embed into other languages.

  • java scripting language called notebook (jython, jruby, groovy) 2010-11-14

    There are two ways 1.java se 6 after the jsr 223 specification for implementation ScriptEngineManager factory = new ScriptEngineManager(); ScriptEngineManager scriptEngine = factory.getEngineByName("javascript");// Or "js" scriptEngine

  • Broad language can now apply for their own language, and to develop your language bar 2011-01-08

    You want to develop their own language, it? Broad language can now apply for broad language account, the development application in your own language please contact QQ: 841489104 Applications needed to fill out the following sent to the above QQ Firs

  • Web Security study notes and 5 - into the Web scripting language 2010-03-05

    Dynamic Execution Vulnerability PHP's eval ASP-execute Wscript.Shell File that contains the vulnerability There PHP remote file include vulnerability http://wahh-app.com/main.php?Country=US Applications will be handled as follows $ Counrty = $ _GET [

  • VBA Excel macro scripting language processing test file copy 2010-11-29

    ' The specified file directory replication tools ( Can a user based on the svn version-controlled project to do incremental publishing purpose use ) ' Author : Xu fruit ' Date :2010-11-26 Sub copyfiles() On Error GoTo errorflag ' Specifies the line n

  • JSTL Introduction: Expression Language (a) 2010-11-10

    JavaServer Pages (JSP) is a standard platform for J2EE presentation layer technology. JSP technology provides for the implementation of calculations (these calculations is used to dynamically generate page content) and scripting elements and actions.

  • Static compilation and dynamic compilation, java and javascript differences Summary 2010-07-31

    1. Statically compiled and dynamically compiled static compilation is a program at compile time already established a good relationship between all classes, all classes to run the program Are indispensable, if put in the beginning of the run where ce