The Battle of the Pan-

Source: Internet
Author: User

??? Below this C code, what kind of person will write such code? C programmers probably will not, more likely is the assembler programmer.

C and the Assembly, especially the following macro compilation, structurally very similar, are typical of the procedural language, of course, there is no objection to the object-type programming, but the object-based programming infrastructure is relatively weak.

C and assembly, are typically weakly typed, run-time only with the concept of address, no type concept

C and assembly, are typical static languages, all the behavior at compile time has been determined, the runtime no longer modify the wording (note: Configuration behavior is already determined at compile time, do not drill this horn)

C compared with the assembly, the symbol instead of the address, this is a significant improvement, the calling method is no longer jmp XXX.

C and the Assembly, no longer concerned about the layout of the memory, configuration data segment, the day of the code segment has come to a curtain

Personally think that C and the compilation of similarities and differences are almost so much, the overall view of the difference is not small, but there are differences, the reverse look at the following call:

this method of using base + offset to target function address, similar to "base addressing ", this is not a C programmer need to care, so I think this is more like a compilation rather than C

The Battle of the Pan-

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.