4 votes 4 votes The identification of common sub-expression and replacement of run time computations by compile-time computations is: Local optimization Constant folding Loop Optimization Data flow analysis Compiler Design nielit2016dec-scientistb-cs compiler-design runtime-environment + – admin asked Mar 31, 2020 • retagged Oct 22, 2020 by Krithiga2101 admin 4.3k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes Option B is correct. Constant Folding....Actually...whenever subexpression is repeated many times....so we can fold that part into a single segment to reduce the space and time complexity of the program. ASHISH SRI answered May 7, 2020 ASHISH SRI comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes answer:- (b) constant folding is an optimization from that has no side effects and that can be evaluated repeatedly to produce value= 1. manoj kanwar answered Jun 2, 2020 manoj kanwar comment Share Follow See all 2 Comments See all 2 2 Comments reply Arjun commented Jun 2, 2020 reply Follow Share How 1? How is common subexpression relevant to constant folding? 0 votes 0 votes manoj kanwar commented Jun 4, 2020 reply Follow Share by common sub expression we mean- the expression which is already computed but during compilation it again appears for computation. in constant folding - the expression which is having a constant value at the time of compilation it can be referred to its respective value or we can say that it can be replaced with its similar value. like we can use 3.14 for 22/7 in the circumference of a circle. this is what has been asked in question - that The identification of common sub-expression and replacement of run time computations by compile-time computations is known as what?? its constant folding where the replacement is done during compilation time. 1 votes 1 votes Please log in or register to add a comment.
2 votes 2 votes option B Constant folding : replacing the value of constants during compilation Constant propagation : replacing the value of an expression during compile time. pritambiswas000007 answered Jun 9, 2020 pritambiswas000007 comment Share Follow See all 0 reply Please log in or register to add a comment.