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
Post a Comment