



Compile dhrystone.c
by salmansheikh on Aug 24, 2015 |
salmansheikh
Posts: 10 Joined: Jan 30, 2010 Last seen: May 12, 2023 |
||
How do I compile this program for the openrisc processor? I tried uncommenting each of these 3 lines and got errors...btw, this is for a FuseSOC generated soc on a de0 nano board (which I finally got working, UART is finally displaying some output after including or1k-support.h (didn't find that documented anywhere :) Do I need some special h/w attached to use these time functions?
/* define only one of the next three defines */ #define GETRUSAGE /* Use getrusage(2) time function */ //#define TIMES /* Use times(2) time function */ //#define TIME /* Use time(2) time function */ salman@salman-Satellite:~$ or1k-elf-gcc dhrystone.c -mboard=de0_nano /tmp/cc09GTXP.o: In function `Proc0': dhrystone.c:(.text+0x40): undefined reference to `getrusage' dhrystone.c:(.text+0x74): undefined reference to `getrusage' dhrystone.c:(.text+0x1e0): undefined reference to `getrusage' dhrystone.c:(.text+0x42c): undefined reference to `getrusage' collect2: error: ld returned 1 exit status
dhrystone.c (28 kb)
|



