/* * evaluation by compiler or by computing at runtime * HBF */ #include int main() { int r = 6 + 4; //evaluated by compiler, assign 10 to r at runtime printf("%d\n", r); int a = 6, b = 4; int r1 = a + b; //computed by the program and assign to r1 at runtime printf("%d", r1); return 0; } /* assembly: ---- movl $10, 28(%esp) movl 28(%esp), %eax movl %eax, 4(%esp) movl $LC0, (%esp) call _printf movl $6, 24(%esp) movl $4, 20(%esp) movl 20(%esp), %eax movl 24(%esp), %edx addl %edx, %eax movl %eax, 16(%esp) movl 16(%esp), %eax movl %eax, 4(%esp) movl $LC1, (%esp) call _printf ---- */