سؤال

What does compiler do behind the scene (at assembly level) when performing lvalue-to-rvalue conversion? Is the lvalue read into a temporary memory (register)?

هل كانت مفيدة؟

المحلول

What the compiler does in each specific case will depend on the compiler implementation, the current optimization level, the exact workings of optimizations in effect at that point, and more.

But basically, lvalue to rvalue conversion corresponds to reading the memory content (roughly representing the rvalue) from the address it is stored at (roughly representing the lvalue).

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top