|
Message
From: Dimitrios Orfanos<sirtimid@g...>
Date: Wed Jan 16 09:45:11 CET 2008
Subject: [openrisc] how to run gcc compiler independently for generation
machine code for or1k
On Tuesday 15 January 2008 17:23:10 ankurrawat0612@g... wrote: > 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 > _______________________________________________ > http://www.opencores.org/mailman/listinfo/openrisc
Do you give argument to or1ksim? for example sim -f sim.cfg <name_of_the_program_to_be_executed>
|
 |