4 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 6.1k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
2 2 votes Option B is correct. Constant folding refers to optimizing expressions that occur multiple times by evaluating and replacing them with a single computed value. This practice reduces both space and time complexity in the program ASHISH SRI answered May 7, 2020 • edited Nov 17, 2024 by Hira Thakur ASHISH SRI comment Share Follow 0 reply Please log in or register to add a comment.
2 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 2 2 Comments reply Arjun commented Jun 2, 2020 reply Follow flag How 1? How is common subexpression relevant to constant folding? 0 0 replyShare manoj kanwar commented Jun 4, 2020 reply Follow flag 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 1 replyShare Please log in or register to add a comment.
2 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 0 reply Please log in or register to add a comment.