Free mag vol1 | Page 732

CHAPTER 18  UNDERSTANDING CIL AND THE ROLE OF DYNAMIC ASSEMBLIES the stack typically involves storing the value into temporary local storage for further use (such as a parameter for an upcoming method invocation). Given this, note how many opcodes that pop the current value off the virtual execution stack take an st (store) prefix. Table 18-7 hits the highlights. Table 18-7. Various Pop-Centric Opcodes Opcode Meaning in Life pop Removes the value currently on top of the evaluation stack, but does not bother to store the value starg Stores the value on top of the stack into the method argument at a specified index stloc (with numerous variations) Pops the current value from the top of the evaluation stack and stores it in a local variable list at a specified index stobj Copies a value of a specified type from the evaluation stack into a supplied memory address stsfld Replaces the valu HوH