JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
In-Class
In-Class Activity to be completed in class.
Note: For this activity and all other activities, you should only make 1 submission (your first submission is always the one graded)
Sign in to Google
to save your progress.
Learn more
* Indicates required question
First Name
*
Your answer
Last Name
*
Your answer
E-mail (Please use Northeastern e-mail)
*
Your answer
Which section of Systems are you in?
*
Mike
John
In the compilation toolchain can we avoid generating assembly?
1 point
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.
Yes, we always can--assembly is useless and not relevant to programmers today.
Clear selection
What are the best practices for disassembling a binary and reading the source code? (Check all that apply)
1 point
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.
What are some features of a CISC Architecture? (Check all that apply)
1 point
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 and movb instruction?
1 point
Yes, movq moves a Quad word of data (e.g. a long) and movb moves a byte of data.
There is no difference.
Clear selection
Can you use the 16 general purpose registers for whatever you want?
1 point
Yes and No. Some instructions reserve these general purpose registers in order to properly operate.
Yes, do whatever you want whenever you want. What could go wrong?
Clear selection
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google.
Report Abuse
-
Terms of Service
-
Privacy Policy
Forms