DHRYSTONE and or32-elf-gcc

View: New views
4 Messages — Rating Filter:   Alert me  

DHRYSTONE and or32-elf-gcc

by Dimitri?s Orfanos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi to everyone,

I am trying to compile the dhrystone that is included in the or1ksim0.2.0
using the or32-elf-gcc with newlib support. And I receive some bad messages,
please help, if you can:

""
I give the command:
or32-elf-gcc -Isupport -o dhry dhry.c ../../exit.s

and I receive the message:
/tmp/ccAfEj5g.o: In function `_main':
dhry.c:(.text+0x420): undefined reference to `_start_timer'
dhry.c:(.text+0x42c): undefined reference to `_read_timer'
dhry.c:(.text+0x46c): undefined reference to `_report'
dhry.c:(.text+0x480): undefined reference to `_report'
dhry.c:(.text+0x494): undefined reference to `_report'
dhry.c:(.text+0x4a8): undefined reference to `_report'
dhry.c:(.text+0x504): undefined reference to `_report'
/tmp/ccAfEj5g.o:dhry.c:(.text+0x520): more undefined references to `_report'
follow
/tmp/ccAfEj5g.o: In function `_main':
dhry.c:(.text+0x918): undefined reference to `_read_timer'
dhry.c:(.text+0xbfc): undefined reference to `_report'
/tmp/ccAfEj5g.o: In function `_Proc_1':
dhry.c:(.text+0xc68): undefined reference to `_report'
dhry.c:(.text+0xe4c): undefined reference to `_report'
dhry.c:(.text+0xedc): undefined reference to `_report'
dhry.c:(.text+0x10ac): undefined reference to `_report'
/tmp/ccAfEj5g.o:dhry.c:(.text+0x10f0): more undefined references to `_report'
follow
collect2: ld returned 1 exit status

DO
_______________________________________________
http://www.opencores.org/mailman/listinfo/openrisc

Re: DHRYSTONE and or32-elf-gcc

by ThamNabble :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try this:
CC=or32-elf-gcc sh dhry.c  

--
I learned today that dhry.c is a script that knows how to compile itself and then run.. sending output to the console etc.
-T

Dimitrios Orfanos wrote:
Hi to everyone,

I am trying to compile the dhrystone that is included in the or1ksim0.2.0
using the or32-elf-gcc with newlib support. And I receive some bad messages,
please help, if you can:

""
I give the command:
or32-elf-gcc -Isupport -o dhry dhry.c ../../exit.s

and I receive the message:
/tmp/ccAfEj5g.o: In function `_main':
dhry.c:(.text+0x420): undefined reference to `_start_timer'
dhry.c:(.text+0x42c): undefined reference to `_read_timer'
dhry.c:(.text+0x46c): undefined reference to `_report'
dhry.c:(.text+0x480): undefined reference to `_report'
dhry.c:(.text+0x494): undefined reference to `_report'
dhry.c:(.text+0x4a8): undefined reference to `_report'
dhry.c:(.text+0x504): undefined reference to `_report'
/tmp/ccAfEj5g.o:dhry.c:(.text+0x520): more undefined references to `_report'
follow
/tmp/ccAfEj5g.o: In function `_main':
dhry.c:(.text+0x918): undefined reference to `_read_timer'
dhry.c:(.text+0xbfc): undefined reference to `_report'
/tmp/ccAfEj5g.o: In function `_Proc_1':
dhry.c:(.text+0xc68): undefined reference to `_report'
dhry.c:(.text+0xe4c): undefined reference to `_report'
dhry.c:(.text+0xedc): undefined reference to `_report'
dhry.c:(.text+0x10ac): undefined reference to `_report'
/tmp/ccAfEj5g.o:dhry.c:(.text+0x10f0): more undefined references to `_report'
follow
collect2: ld returned 1 exit status

DO
_______________________________________________
http://www.opencores.org/mailman/listinfo/openrisc

Re: DHRYSTONE and or32-elf-gcc

by ThamNabble :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Here is the copy of the dhry.c file that I have. Compare to your file. I have learned there are many versions as well.


Try this:
CC=or32-elf-gcc sh dhry.c  

--
I learned today that dhry.c is a script that knows how to compile itself and then run.. sending output to the console etc.
-T

dhry.c

Re: DHRYSTONE and or32-elf-gcc

by wishbone :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am going to run Dhrystone code on OpenRISC and make comparison with Nios. Could you send me your Dhrystone source C code ? Thanks very much!


Here is the copy of the dhry.c file that I have. Compare to your file. I have learned there are many versions as well.

ThamNabble wrote:
Try this:
CC=or32-elf-gcc sh dhry.c  

--
I learned today that dhry.c is a script that knows how to compile itself and then run.. sending output to the console etc.
-T

dhry.c