3 votes 3 votes X=(M+N*O)/(P*Q) How many zero-address instructions are there? I did it.Just want to check whether it is right? PUSH P PUSH Q MUL PUSH N PUSH O MUL PUSH M ADD DIV POP X So total 10 instructions required.Correct? sampad asked Oct 16, 2015 sampad 1.1k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes X=(M+N*O)/(P*Q) post order MNO*+PQ*/ PUSH M PUSH N PUSH O MUL ADD PUSH P PUSH Q MUL DIV POP X zero address instruction 4 one address instruction 6 shahbaz answered Jan 17, 2017 shahbaz comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes No of instructions required will be dependent on architecture set...Say if there is no Mul instruction then we need to mul instruction by using add instruction...so to ans que we need to know architecture or instruction set Pooja Palod answered Oct 16, 2015 Pooja Palod comment Share Follow See all 0 reply Please log in or register to add a comment.