assembly - Bytes of memory in the entire program -


hey guys have quick question. hoping explanation on how go doing type of question.

suppose program's data , executable code require 1024 bytes of memory. new section of code must added; used various values 39 times during execution of program. when implemented macro, macro code requires 74 bytes of memory. when implemented procedure, procedure code requires 104 bytes (including parameter-passing, etc.), , each procedure call requires 9 bytes.

questions such these ask, how many bytes of memory entire program require if new code added ___ (macro or procedure).

any appreciated.

proc: 1024 + (39 * 9) + 104 = 1479 macro: 1024 + (39 *74) = 3910


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -