This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using CGEN Disassembler


Hi -

On Wed, Nov 21, 2001 at 02:45:27PM -0000, Stephen Done wrote:
: I would like to use CGEN to disassemble some code for the Mitsubishi M32R
: processor.
: [...]
: All I need is the command to take a binary file and convert it to assembler.
: I've done as much RTFM'ing as I can, and I'm not getting anywhere.

Thanks for looking into it before asking the question!

Why do you think you need to deal with cgen directly for this task?
Are you aware that if you compile a m32r cross toolchain (or at least
binutils), you get an objdump program that can disassemble stuff for you?

	cvs [...] co binutils
	/[src]/configure --target=m32r-elf --prefix=[installtree]
	make all install
	[installtree]/bin/m32r-elf-objdump -d program.elf

- FChE

Attachment: msg00040/pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]