logo

Crowdly

  Voici un code IJVM. Quelle valeur (en décimal) est en sommet de pile à la fi...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

 

Voici un code IJVM. Quelle valeur (en décimal) est en sommet de pile à la fin  quand on atteint le  halt?

 

 

.main

BIPUSH 0x40

BIPUSH 4

INVOKEVIRTUAL f

BIPUSH 0x40

BIPUSH 3

INVOKEVIRTUAL f

iadd

OUT

halt

.end-main

.method f( x )

iload x

bipush 10

isub

IRETURN

.end-method

 

.main

BIPUSH 0x40

BIPUSH 5

INVOKEVIRTUAL f

BIPUSH 0x40

BIPUSH 16

INVOKEVIRTUAL f

iadd

halt:

.end-main

.method f( x )

iload x

bipush 10

isub

IRETURN

.end-method

 

 

 

 

0%
0%
0%
0%
0%
0%
0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on celene.univ-orleans.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!