Re: ifield's value processing -- help is needed

Lev Yudalevich <[email protected]>
Newsgroups gmane.comp.tools.cgen.devel
Message-ID <CA+zUDe0hwMA03DRPKycCPkrdDW0aHXP5vFhnLCAd2F-V0tdBqw@mail.gmail.com>
Thank you very much!!!

On Thu, Jun 13, 2013 at 1:52 AM, Frank Ch. Eigler <[email protected]> wrote:
> Hi -
>
> On Wed, Jun 12, 2013 at 12:27:06PM +0300, Lev Yudalevich wrote:
>
>> [...]  for example, I'd have to know the currently active isa inside
>> the cgen_dis_hash function and I couldn't find a guide or an example
>> of using CGEN_COMPUTE_ISA, except for a mention of its existence in
>> the CGEN documentation).
>
> When disassembling (or simulating the execution of) anything, you
> usually have to specify a-priori the ISA of the binary dump.  (If you
> want to try auto-detection, that'd have to be done via hand-written
> code in the .opc file or elsewhere.)  For example, see how
> disasemble_info* is passed into the generated default_print_insn()
> function; or examples like sh* with its compact & media ISA's or m32rc
> with its m16c/m32c.
>
> - FChE
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.