address of the variable in TSIM simulator

Status
Not open for further replies.

amitabh262002

Member level 2
Joined
Jul 24, 2007
Messages
49
Helped
8
Reputation
16
Reaction score
7
Trophy points
1,288
Visit site
Activity points
1,661
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?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…