首页 > 其他 > 详细

CS2312 Lecture 1

时间:2018-01-22 12:40:20      阅读:314      评论:0      收藏:0      [点我收藏+]

Computer program: A list of instructions(code) meant to be followed by a computer

Executing a program: Programs must first be converted into machine code that the computer can understand and execute

Compiler: A program that translates a programming language into machine code is called a compiler

Program -> compiler -> machine code -> operating system(platform)

In JAVA

The Java compiler produces an intermediate format called bytecode.

Java program -> compiler -> Java Bytecode (not machine code for real computer, is machine code for a model computer, called Java Virtual Machine(JVM))

Java Interpreter: convert the bytecode into machine code(Simulates the execution of the JVM on the real computer)

Can run bytecode on any computer that has a Java Interpreter (JRE - Java Runtime Environment - Java 8, Java 9...download from Oracle website) installed

技术分享图片

 

CS2312 Lecture 1

原文:https://www.cnblogs.com/charon922/p/8328345.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!