URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 834 |
Rev 842 |
|
|
static int x;
|
static int x;
|
|
|
int foo (int a)
|
int foo (int a)
|
{
|
{
|
int b = a + 10;
|
int b = a + 10;
|
return b;
|
return b;
|
}
|
}
|
|
|
int bar (int y)
|
int bar (int y)
|
{
|
{
|
int z = y + 20;
|
int z = y + 20;
|
return z;
|
return z;
|
}
|
}
|
|
|
void func()
|
void func()
|
{
|
{
|
x = x + 5;
|
x = x + 5;
|
func2 ();
|
func2 ();
|
}
|
}
|
|
|
int func2 ()
|
int func2 ()
|
{
|
{
|
x = 6;
|
x = 6;
|
}
|
}
|
|
|
int func3 ()
|
int func3 ()
|
{
|
{
|
x = 4;
|
x = 4;
|
}
|
}
|
|
|
void marker1 ()
|
void marker1 ()
|
{
|
{
|
}
|
}
|
|
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
int result;
|
int result;
|
int b, c;
|
int b, c;
|
c = 5;
|
c = 5;
|
b = 3; /* advance this location */
|
b = 3; /* advance this location */
|
|
|
func (c); /* stop here after leaving current frame */
|
func (c); /* stop here after leaving current frame */
|
marker1 (); /* stop here after leaving current frame */
|
marker1 (); /* stop here after leaving current frame */
|
func3 (); /* break here */
|
func3 (); /* break here */
|
result = bar (b + foo (c));
|
result = bar (b + foo (c));
|
return 0; /* advance malformed */
|
return 0; /* advance malformed */
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.