Programming Language Pragmatics, Fourth Edition
4th Edition
ISBN: 9780124104099
Author: Michael L. Scott
Publisher: Elsevier Science
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 5.4, Problem 31CYU
Explanation of Solution
Register conventions of x86:
- The register “ebp” is generally used by the x86-32 for a frame pointer, whether or not the compiler makes use of special frame management instructions.
- The register “eax” is used to return the function values. Any subroutine which modifies registers “ebx”, “esi”, or “edi” must save their old values in memory, and restore them before returning.
- In x86-64, no frame pointer, the register “rsp” is used as the base when accessing data in the stack, and “rbp” is just an ordinary register.
- The first six integer arguments to a subroutine are passed in registers “rdi”, “rsi”, “rdx”, “rcx”, “r8”, and “r9” respectively.
- If there are few arguments, these registers must be saved by the caller if the contents are needed later...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionChapter 5 Solutions
Programming Language Pragmatics, Fourth Edition
Ch. 5.2 - Prob. 1CYUCh. 5.2 - Prob. 2CYUCh. 5.2 - Prob. 3CYUCh. 5.2 - Prob. 4CYUCh. 5.2 - Prob. 5CYUCh. 5.2 - Prob. 6CYUCh. 5.3 - Prob. 7CYUCh. 5.3 - Prob. 8CYUCh. 5.3 - Prob. 9CYUCh. 5.3 - Prob. 10CYU
Ch. 5.3 - Prob. 11CYUCh. 5.3 - Prob. 12CYUCh. 5.3 - Prob. 13CYUCh. 5.3 - Prob. 14CYUCh. 5.3 - Prob. 15CYUCh. 5.3 - Prob. 16CYUCh. 5.3 - Prob. 17CYUCh. 5.3 - Prob. 18CYUCh. 5.4 - Prob. 19CYUCh. 5.4 - Prob. 20CYUCh. 5.4 - Prob. 21CYUCh. 5.4 - Prob. 22CYUCh. 5.4 - Prob. 25CYUCh. 5.4 - Prob. 27CYUCh. 5.4 - Prob. 28CYUCh. 5.4 - Prob. 29CYUCh. 5.4 - Prob. 30CYUCh. 5.4 - Prob. 31CYUCh. 5.4 - Prob. 32CYUCh. 5.4 - Prob. 33CYUCh. 5.4 - Prob. 34CYUCh. 5.4 - Prob. 35CYUCh. 5.4 - Prob. 36CYUCh. 5.4 - Prob. 37CYUCh. 5.4 - Prob. 38CYUCh. 5.5 - Prob. 39CYUCh. 5.5 - Prob. 40CYUCh. 5.5 - Prob. 41CYUCh. 5.5 - Prob. 42CYUCh. 5.5 - Prob. 43CYUCh. 5.5 - Prob. 44CYUCh. 5.5 - Prob. 45CYUCh. 5.5 - Prob. 46CYUCh. 5.5 - Prob. 47CYUCh. 5.5 - Prob. 48CYUCh. 5 - Prob. 1ECh. 5 - Prob. 2ECh. 5 - Prob. 3ECh. 5 - Prob. 4ECh. 5 - Prob. 5ECh. 5 - Prob. 6ECh. 5 - Prob. 7ECh. 5 - Prob. 8ECh. 5 - Prob. 9ECh. 5 - Prob. 10ECh. 5 - Prob. 11ECh. 5 - Prob. 13ECh. 5 - Prob. 14ECh. 5 - Prob. 15ECh. 5 - Prob. 16ECh. 5 - Prob. 17ECh. 5 - Prob. 18ECh. 5 - Prob. 19E
Knowledge Booster
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education