Use Linux executableobjectCode5 for this question. These files are onsyccuxas01.pcc.edu in directory ~michael.trigoboff/cs201/quiz02LinuxFiles.
The file is run from the Linux command line, and takes one positive numerical argument, like this:
./objectCode5 3
(You can enter any small positive integer instead of 3.)
Command line arguments are passed toint main(int argc, char** argv) as argumentsargc andargv. You should assume thatargc is at ebp+8 andargv is at ebp+12.
This code contains a function namedwhat. Usinggdb, figure out what the function named what computes:
Question options:
1)
2)
3)
4)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here