This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: "igen vs. cgen?"
- From: "Monika Chaddha" <monika at acmet dot com>
- To: "'Xinan Tang'" <xinan at tidalnetworks dot net>
- Cc: <gdb at sources dot redhat dot com>
- Date: Thu, 22 Jul 2004 12:41:39 +0530
- Subject: RE: "igen vs. cgen?"
Hi Xinan
Igen would be used for adding new simulator input. There are many igen
files present in the source... Mips.igen, M16.igen etc...
The source for 'igen' (the simulator generator used) is present at
'src/sim/igen'. The 'igen' simulator generator takes input the mips.igen
file which includes other igen files and generates the simulator source.
The source for simulator will generate in build directory. The contents
of this source will depend on the input 'mips.igen' file. These files
are responsible for instruction implementation.
U need new model name also to add any new instruction.
Monika
>-----Original Message-----
>From: gdb-owner@sources.redhat.com
[mailto:gdb-owner@sources.redhat.com] On
>Behalf Of Xinan Tang
>Sent: Thursday, July 22, 2004 12:46 AM
>To: gdb@sources.redhat.com
>Subject: "igen vs. cgen?"
>
>Hi
>
> When I search the gdb mailing list for adding a new simulator, two
>approaches were mentioned: igen vs. cgen.
>
> Now igen (psim) was included within gdb, is there any consensus which
one
>should be used within gdb for adding a new simulator?
>
>Thanks
>
>--Xinan