Minimum number of variables required in Three address code?Is it your question

0 votes

a x b x c + d - a + e x f - g + h

order of precedence : x>+>- ; with x is left associative and +, - as right.

Min number of variables required in TAC?

Should'nt the expression be expressed as :

((a x b) x c) + d - a + (e x f) - g + h

(((a x b) x c) + (d - (a + (e x f)) - (g + h)))

order of precedence : x>+>- ; with x is left associative and +, - as right.

Min number of variables required in TAC?

Should'nt the expression be expressed as :

((a x b) x c) + d - a + (e x f) - g + h

(((a x b) x c) + (d - (a + (e x f)) - (g + h)))

1

@manisha11 while paranthising you forgot that + has higher precedence over - and you treated as if both have same precedence and are right to left associative.

0

We have different types of 3address code representations like triple, quadruple ,indirect in which does the result wanted to be in?

Indirect doesn't use any extra variables I guess.

Indirect doesn't use any extra variables I guess.

0

Will someone tell me how many minimum number of variables will be used in this question? @hemanth

@manisha11

@manas mishra

@manisha11

@manas mishra

0

@Hemanth_13 The question is minimum number of variables required in three address code, does that mean SSA?