Compilation in Linux-crossing the road-Linux general technology-Linux programming and kernel information. The following is a detailed description. When reading the Linux source code, you may encounter some assembly language fragments, some of which appear in. in an assembly file with the extension S, the entire program is composed of assembly languages. Some assembly commands appear in. in c files with the extension C, there are both C and assembly languages. We call the Assembly Language in c code as "embedded" assembly. No matter where the assembly code appears, it has become a roadblock for reading the source code to a certain extent.
Although the C language has become the main language for compiling the operating system, in the process of dealing with hardware in the operating system, in the function that requires frequent calls and some special occasions, the C language seems to be inadequate. At this time, the tedious but efficient assembly language must be on the stage. Therefore, on the basis of understanding some hardware, you must have all the relevant Assembly language knowledge.
Readers may have written assembler programs in the DOS operating system, and have some compilation knowledge. However, in the Linux source code, you may see a format different from Intel's assembly language. This is AT&T's 386 assembly language.
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.