URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
#include <stdio.h>
|
#include <stdio.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
#include <string.h>
|
#include <string.h>
|
#ifndef __FreeBSD__
|
#ifndef __FreeBSD__
|
#include <alloca.h>
|
#include <alloca.h>
|
#endif
|
#endif
|
int main ()
|
int main ()
|
{
|
{
|
char *boo, *foo;
|
char *boo, *foo;
|
boo = (char *) alloca (100);
|
boo = (char *) alloca (100);
|
boo[99] = 'a';
|
boo[99] = 'a';
|
foo = (char *) __builtin_alloca (200);
|
foo = (char *) __builtin_alloca (200);
|
foo[44] = 'b';
|
foo[44] = 'b';
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.