zoukankan      html  css  js  c++  java
  • 编译器把源码编译成通用中间语言

    简单讲,编译器 就是将“一种语言(通常为高级语言)”翻译为“另一种语言(通常为低级语言)”的程序。一个现代编译器的主要工作流程: 源代码  (source code) → 预处理器 (preprocessor) → 编译器 (compiler) → 目标代码  (object code) → 链接器 (Linker) → 可执行程序(executables)

    对于C#、VB等高级语言而言,此时编译器完成的功能是把源码(SourceCode)编译成通用中间语言(MSIL/CIL)的字节码(ByteCode)。最后运行的时候通过通用语言运行库的转换,编程最终可以被CPU直接计算的机器码(NativeCode)。

     1 package Com.Table;
     2 import java.util.Scanner;
     3 
     4 public class FiveTable {
     5 
     6     public static void main(String [] args)
     7     {
     8         System.out.println("input score:");
     9         Scanner scanner = new Scanner(System.in);
    10         int score = scanner.nextInt();
    11         int Count = 0;
    12         if (score < 60)
    13         {
    14             int temp = score;
    15             while (temp < 60)
    16             {
    17                 temp++;
    18                 Count++;
    19             }
    20             System.out.println("before:" + score);
    21             System.out.println("result:" + temp);
    22             System.out.println("add" + Count + "test");
    23         }
    24         else
    25         {
    26             System.out.println("end!");
    27         }
    28     }
    29 }
  • 相关阅读:
    [APIO2014]序列分割
    [HNOI2008]玩具装箱TOY
    [ZJOI2007]时态同步
    [FJOI2014]最短路径树问题
    [IOI2011]Race
    [国家集训队]聪聪可可
    矩阵加速递推
    Codeforces Round #669 题意及思路
    Codeforces Round #670 题意及思路
    Codeforces Round #671 题意及思路
  • 原文地址:https://www.cnblogs.com/borter/p/9383906.html
Copyright © 2011-2022 走看看