What advantage does inline assembly code offer over the use of external assembly languageprocedures?

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter6: System Integration And Performance
Section: Chapter Questions
Problem 33VE
icon
Related questions
Question

What advantage does inline assembly code offer over the use of external assembly language
procedures?

Expert Solution
Step 1: Advantages of inline assembly code

Inline assembly code:

The Inline assembly code is the source code of an assembly language that is inserted directly into high level language programs.

Advantages of inline assembly code:

The inline assembly code offers the following advantages over the use of external assembly language procedures,

  • The primary advantage is its simplicity because there are no external linking issues, naming problems, and parameter passing protocols the programmer needs to take care of.
  • The inline code can execute more quickly, because it avoids the extra execution time required for calling and returning from an assembly language procedure.
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Computer System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning