* opcodes assembler
@ 2010-05-27 16:55 dyblast
2010-05-28 1:07 ` Alan Modra
0 siblings, 1 reply; 4+ messages in thread
From: dyblast @ 2010-05-27 16:55 UTC (permalink / raw)
To: binutils
Hi,
I have used opcodes in order to disassemble a object file.
Following the opcodes binutils presentation text:
"Many of them also use the *opcodes* library to assemble and disassemble
machine instructions."
I can also use opcodes to assemble... how?
Is there a comparable functions that "disassembler_ftype disassembler
(bfd *);" for assembling ?
Thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: opcodes assembler
2010-05-27 16:55 opcodes assembler dyblast
@ 2010-05-28 1:07 ` Alan Modra
2010-05-28 12:46 ` dyblast
0 siblings, 1 reply; 4+ messages in thread
From: Alan Modra @ 2010-05-28 1:07 UTC (permalink / raw)
To: dyblast; +Cc: binutils
On Thu, May 27, 2010 at 06:55:38PM +0200, dyblast wrote:
> Is there a comparable functions that "disassembler_ftype
> disassembler (bfd *);" for assembling ?
No. gas uses libopcodes mostly to use the opcode table.
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: opcodes assembler
2010-05-28 1:07 ` Alan Modra
@ 2010-05-28 12:46 ` dyblast
2010-05-29 5:37 ` Alan Modra
0 siblings, 1 reply; 4+ messages in thread
From: dyblast @ 2010-05-28 12:46 UTC (permalink / raw)
To: binutils
So there isn't a easy way to do the same thing? I have take a look on
gas directory i haven't understood a lot...
Le 28/05/2010 03:07, Alan Modra a écrit :
> On Thu, May 27, 2010 at 06:55:38PM +0200, dyblast wrote:
>> Is there a comparable functions that "disassembler_ftype
>> disassembler (bfd *);" for assembling ?
> No. gas uses libopcodes mostly to use the opcode table.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: opcodes assembler
2010-05-28 12:46 ` dyblast
@ 2010-05-29 5:37 ` Alan Modra
0 siblings, 0 replies; 4+ messages in thread
From: Alan Modra @ 2010-05-29 5:37 UTC (permalink / raw)
To: dyblast; +Cc: binutils
On Fri, May 28, 2010 at 02:46:21PM +0200, dyblast wrote:
> So there isn't a easy way to do the same thing?
No, but you may want to look at using http://sourceware.org/cgen/
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-05-29 5:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-27 16:55 opcodes assembler dyblast
2010-05-28 1:07 ` Alan Modra
2010-05-28 12:46 ` dyblast
2010-05-29 5:37 ` Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).