General form of ARM Assembly and assembly call C language

Source: Internet
Author: User

. text//code snippet
. Global _start//Show Program entry
_start://Entry function
BL main//jump to Main in C, do not necessarily jump to main, you can also perform other assembly instructions

General engineering, pure Assembly complex, and efficiency than the C language does not improve how much, so in the absence of the operating system of the project, the best way to develop is to use the assembly to call the C language, the use of C language to complete the required work (only when the efficiency requirements are very high when the assembly to write code blocks), Of course, bare-metal development does not have a ready-made library, even if the simple printf function can not be called, in fact, is the assembly of high-level language version. Personally feel that the C language and the assembler are not very different in nature. And the ARM assembly contains the immediate number of legitimate concerns, But in the C language can not be completely considered. So I will not be in the blog to tell the assembly of things, the individual feel no need, as long as you know what each command to use, and then can use the line.

General form of ARM Assembly and assembly call C language

Related Article

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.