|
Message
From: ankurrawat0612 at gmail.com<ankurrawat0612@g...>
Date: Tue Jan 15 16:23:10 CET 2008
Subject: [openrisc] how to run gcc compiler independently for generation
machine code for or1k
hi ..... I am trying to convert C codes to machine codes for open risk processor or1k , through gcc-3.4.4 compiler.Machine codes will then be used in verilog based test bench for giving inputs to or1200 processor.
for this i am configuring gcc and then or1sim. by procedure $../gcc-3.4.4/configure --target= --prefix=/location (here i hav not given any target) $make all install
and then $cd or1ksim $./configure --target=or32 --prefix=/location $make all install $export PATH=/location/bin:$PATH
After that i am copying sim.cfg file (present in or1ksim) to location of configuration. but following compilation is giving error message of segmentation fault $./bin/or32-sim file.c (file.c is general c code which i have written) >Reading script file from 'sim.cfg'... >Insn MMU 0KB: 1 ways, 64 sets, entry size 0 bytes >Data MMU 0KB: 1 ways, 64 sets, entry size 0 bytes >Segmentation fault please help me out in finding this segmentation fault and in removing it .
here i am dealing with gcc-3.4.4 compiler ,or1ksim and rtl present in the project.Are there any other parameters to be set which i am missing. thanks & regards ankur
|
 |