NOP command overview and functions

Source: Internet
Author: User

/*************************************** ******************************
* Author: Samson
* Date: 08/03/2014
* Test Platform:
* Linux Ubuntu 3.2.0-58-generic-pae
* GNU bash, version 4.2.39
**************************************** ****************************/

In computer science, NOP or Noop (no operation or no operation completed MED) is an assembly language instruction, a series of programming statements, or a command in the network transmission protocol that does not perform any valid operations.

NOP is used to execute a command with the same effect as an operand.
NOP commands are usually used to control the time sequence, force memory alignment to prevent pipeline disasters, occupying branch instruction delays), or as placeholders for Program Improvement (or replacing removed commands ).
the simplest NOP block in C language is called an empty statement. It only contains a semicolon.
;
but whether such a semicolon is compiled as a NOP instruction requires you to determine how the compiler compiles, this sentence may have been optimized, but it may not be completely correct.
NOP is generally used to crack the software, such as checking the serial number, software for specific hardware or software requirements, dongle and so on. This is achieved by changing functions and/or subprograms to skip the security check and directly returning the expected detection value. Since the commands in most security check subroutines are discarded, they are replaced by NOP. That is, replace the original code for the check with the NOP command.

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.