Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
6
Trophy points
1,288
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top