URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 205 |
Rev 215 |
int var = 123;
|
int var = 123;
|
int foo = 121;
|
int foo = 121;
|
|
|
int var2[2]= { 123, 456 };
|
int var2[2]= { 123, 456 };
|
|
|
#include <stdio.h>
|
#include <stdio.h>
|
|
|
void
|
void
|
print_var (void)
|
print_var (void)
|
{
|
{
|
printf ("DLL sees var = %d\n", var);
|
printf ("DLL sees var = %d\n", var);
|
}
|
}
|
|
|
void
|
void
|
print_foo (void)
|
print_foo (void)
|
{
|
{
|
printf ("DLL sees foo = %d\n", foo);
|
printf ("DLL sees foo = %d\n", foo);
|
}
|
}
|
|
|
void (* func_ptr)(void) = print_foo;
|
void (* func_ptr)(void) = print_foo;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.