2 votes 2 votes Which of the following is machine independent optimization? Loop optimization Redundancy Elimination Folding All of the option Compiler Design nielit2017dec-scientistb compiler-design code-optimization + – admin asked Mar 30, 2020 retagged Oct 22, 2020 by Krithiga2101 admin 8.8k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
4 votes 4 votes Machine Independent optimization: Loop optimization, Redundancy elimination, folding, Strength reduction, Deadlock elimination. Machine Dependent optimization: Register allocation, Use of addressing modes, Peephole optimization. topper98 answered Jun 15, 2020 topper98 comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Answer: D Src: https://en.wikipedia.org/wiki/Optimizing_compiler Dileep kumar M 6 answered Dec 19, 2017 Dileep kumar M 6 comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Machine independent optimization attempts to improve the intermediate code to get a better target code. The part of the code which is transformed here does not involve any absolute memory location or any CPU registers. All of these are machine independent optimization. Ref: https://www.javatpoint.com/machine-independent-optimization smsubham answered Apr 2, 2020 smsubham comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes option D machine independent optimization examples are 1 loop optimization 2 constant folding 3 loop unrolling 4 loop jamming 5 redundancy elemination 6 code motion or frequency reduction 7 strength reduction pritambiswas000007 answered Jun 9, 2020 pritambiswas000007 comment Share Follow See all 0 reply Please log in or register to add a comment.