This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: Assembly instructions storing structure


Hi Ashwin,
   THanks you for your quick response. When I said "fix" I meant I wanted
to  play with the instructions that are already generated. It is for
getting some results. Can you please tell me a little specificially
where in the frags are the instructions stored and the format they are
stored?

Thanks,

Balaji V. Iyer.


Ashwin Pathmudi wrote:
> hi,
>
> On 11/17/05, Balaji V. Iyer <bviyer@ncsu.edu> wrote:
>> Hi Everyone,
>>      I am trying to port binutils to my propriatery architecture, and I
>> would like to do some "fix" before writing the instructions to the
>> file. I would to know where it stores the assembly instructions
>> before writing it to the file (like maybe a linked list or
>> something).
>>
>> I am currently using binutils-2.11.93
>    The opcode for assembly instruction is written into a  structure called
>    frag. I've never worked on binutils-2.11 but its at least the case
> in 2.15. More info
>   on frags can be got from gas/frags.h.
>
>   When you say "fix" do you mean doing a fixup or you want to tamper with
> the
>   object code of the already generated instruction ?
>
> HTH,
> cheers,
> Ashwin Pathmudi.
>


====================================================
Balaji V. Iyer
PhD Student
Department of Electrical and Computer Engineering
North Carolina State University.
====================================================


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