Question: 8:49 docs.google.com - FK 15 In the compilation toolchain can we avoid generating assembly? O It would be incredibly hard to go from C straight


8:49 docs.google.com - FK 15 In the compilation toolchain can we avoid generating assembly? O It would be incredibly hard to go from C straight to machine code. While not impossible, converting to C to assembly (or a variety of assembly languages) makes C very portable for different operating systems and platforms. O Yes, we always can-assembly useless and not relevant to programmers today. 15 What are the best practices for disassembling a binary and reading the source code? (Check all that apply) Make sure you compiled with debugging symbols Typically, disable optimizations and other code transformations (though this is not required) When using objdump, make sure to pass in the disassemble (-d) flag. 15 What are some features of a CISC Architecture? (Check all that apply) Instructions do more per single operation. (Often multiple operations) Instruction du travy om wung per 8:49 docs.google.com - FEEXIK 15 What are some features of a CISC Architecture? (Check all that apply) Instructions do more per single operation. (Often multiple operations) Instructions do exactly one thing per operation. Typically the code is a smaller size because more operations are done at once. Typically a CISC architecture is for a more general purpose machine like a PC, versus a specific piece of hardware (like a gaming console) Is there a difference between the movq 19) and movb instruction? O Yes, movq moves a Quad word of data (e.g. a long) and movb moves a byte of data. O There is no difference. 15 Can you use the 16 general purpose registers for whatever you want? Yes and No. Some instructions reserve O these general purpose registers in order to properly operate. O Yes, do whatever you want whenever you want. What could go wrong
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
