amitabh262002
Member level 2
Hi,
I am using TSIM/LEON3 SPARC simulator, version 2.0.18 (evaluation version)for C program for compilation and simulation.
For example I am running the following C program......
--------------------------------
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int a=2,b=3,c;
c=a+b;
printf("Sum=%d",c);
return 0;
}
------------------------------------
I am getting the sum as 5.
Now I want to see the address of the variables a,b,c.
Please tell me the command for the same, how to see the address of a,b,c?
I am using TSIM/LEON3 SPARC simulator, version 2.0.18 (evaluation version)for C program for compilation and simulation.
For example I am running the following C program......
--------------------------------
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int a=2,b=3,c;
c=a+b;
printf("Sum=%d",c);
return 0;
}
------------------------------------
I am getting the sum as 5.
Now I want to see the address of the variables a,b,c.
Please tell me the command for the same, how to see the address of a,b,c?