I came across many questions on difference between debug and release like this one
But all are explaining same words like optimisation but nothing deeper.
I would like to know the response with a particular example for better understanding. Below is a simple dummy code for reference. Can anyone tell me the expected symbols missing and optimisations in release mode as against debug mode in reference to this example?
Even pointing to one optimisation would help
#include<stdio.h>
int sum(int arg1, int arg2);
main()
{
int out, in1, in2;
in1 = 1;
in2 = 0;
out = 0;
while (out < 20)
{
out = sum(in1 , in2);
printf(" Current value of out [%d] = in1 [%d] + in2 [%d]\n", out, in1, in2 );
in1++;
in2++;
} /*End of while*/
} /*End of main()*/
int sum(int arg1, int arg2)
{
int sum_val;
sum_val = arg1 + arg2;
return sum_val;
} /*End of sum()*/