سؤال

When a program is run it uses the various registers eax, ebx etc. to store and move data.

Does a program use the same registers every time it is run?

Can the registers it does or does not use be found?

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

المحلول

If it is compiled to machine code, it will use the same registers all the time. If it is interpreted or compiled to byte code (think Java or C#) it can use different registers on each run.

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