• 汇编语言指令是机器指令的符号化


    汇编语言指令是机器指令的符号化 ,与机器指令存在着直接的对应关系,所以汇编语言同样存在着难学难用、容易出错、维护困难等缺点。

    但是汇编语言也有自己的优点:可直接访问系统接口,汇编程序翻译成的机器语言程序的效率高。

    从软件工程角度来看,只有在高级语言不能满足设计要求,或不具备支持某种特定功能的技术性能(如特殊的输入输出)时,汇编语言才被使用。

     1 package Com.TableTest;
     2 import java.io.FileInputStream;
     3 import java.io.FileOutputStream;
     4 import java.io.IOException;
     5 import java.io.File;
     6 
     7 public class TableText_26 {
     8     public static void main(String[] args) {
     9         TableText_24 t=new TableText_24();
    10         t.fileCopy();
    11     }
    12 public void fileCopy() {
    13     FileInputStream input = null;
    14     FileOutputStream output = null;
    15 
    16     try {
    17 
    18         input = new FileInputStream(new File("H://borter.txt"));
    19         output = new FileOutputStream(new File("H://borter2.txt"));
    20 
    21         byte[] bt = new byte[1024];
    22         int realbyte = 0;
    23     
    24         while ((realbyte = input.read(bt)) > 0) {
    25             
    26     
    27             output.write(bt,0,realbyte);
    28         }
    29         
    30         output.close();
    31     } catch (Exception e) {
    32         e.printStackTrace();
    33     } finally {
    34         try {
    35             if (input != null) {
    36                 input.close();
    37             }
    38             if (output != null) {
    39                 output.close();
    40             }
    41         } catch (IOException e) {
    42             e.printStackTrace();
    43         }
    44     }
    45 }
    46 }
  • 相关阅读:
    docker容器跑tomcat遇到的坑
    PCL 编程多个点云合成
    PCL 常用小知识
    PCL点云库中的坐标系(CoordinateSystem)
    Ubuntu14.04(64位)下gcc-linaro-arm-linux-gnueabihf交叉编译环境搭建
    Windows cmd 快捷操作
    #Pragma Pack与内存分配
    线段上的整数点个数
    基于PCL绘制模型并渲染
    rosbag数据记录及转换图片、视频
  • 原文地址:https://www.cnblogs.com/borter/p/9395352.html
Copyright © 2020-2023  润新知