When does the compiler choose ldloc or ldloca? My guess is that it chooses ldloca for interfaces and valuetypes. But is that it? Does it choose it for other things too?
ldloca
loads the address of a variable onto the stack.
It's used to pass variables as ref
and out
parameters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With