Inline assembly is invoked in different compilers in different ways. One of the most common methods for using assembly code fragments in a C programming project is to use a technique called inline assembly. This section will look at multiple techniques for mixing C and Assembly program development. The timing can be strictly controlled, which is useful for writing simple device drivers. Assembly is also useful for time-critical or real-time processes, because unlike with high-level languages, there is no ambiguity about how the code will be compiled. Also, it is frequently useful for the programmer to look at the assembly output of the C compiler, and hand-edit, or hand optimize the assembly code in ways that the compiler cannot. However, there are some low-level tasks that either can be better implemented in assembly, or can only be implemented in assembly language. Many programmers are more comfortable writing in C, and for good reason: C is a mid-level language (in comparison to Assembly, which is a low-level language), and spares the programmers some of the details of the actual implementation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |