Assembly language instruction is symbolic of machine instruction

Source: Internet
Author: User

Assembly language instruction is the symbolic of the machine instruction, and the machine directive has the direct correspondence relation, therefore the assembly language also has the difficulty to study difficult to use, error prone, the maintenance difficulty and so on shortcoming.

But the assembly language also has its own advantages: direct access to the system interface, assembler translation into the machine language program of high efficiency.

From a software engineering perspective, assembly language is used only when high-level languages do not meet design requirements or do not have the technical performance to support a particular function, such as special input and output.

1  Packagecom.tabletest;2 ImportJava.io.FileInputStream;3 ImportJava.io.FileOutputStream;4 Importjava.io.IOException;5 ImportJava.io.File;6 7  Public classtabletext_26 {8      Public Static voidMain (string[] args) {9Tabletext_24 t=Newtabletext_24 ();Ten t.filecopy (); One     } A  Public voidfileCopy () { -FileInputStream input =NULL; -FileOutputStream output =NULL; the  -     Try { -  -input =NewFileInputStream (NewFile ("H://borter.txt")); +Output =NewFileOutputStream (NewFile ("H://borter2.txt")); -  +         byte[] bt =New byte[1024]; A         intRealbyte = 0; at      -          while((Realbyte = Input.read (BT)) > 0) { -              -      -Output.write (bt,0, realbyte); -         } in          - output.close (); to}Catch(Exception e) { + e.printstacktrace (); -}finally { the         Try { *             if(Input! =NULL) { $ input.close ();Panax Notoginseng             } -             if(Output! =NULL) { the output.close (); +             } A}Catch(IOException e) { the e.printstacktrace (); +         } -     } $ } $}

Assembly language instruction is symbolic of machine instruction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.