lightning
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lightning] How to get call address / instruction pointer without a


From: Paulo César Pereira de Andrade
Subject: Re: [Lightning] How to get call address / instruction pointer without a hack?
Date: Wed, 12 Mar 2014 15:03:56 -0300

2014-03-11 12:18 GMT-03:00 Paulo César Pereira de Andrade
<address@hidden>:
> 2014-03-10 14:22 GMT-03:00 Bruno Loff <address@hidden>:
>
>   I just pushed an "experimental" interface to instruct lightning to use an
> alternate code buffer, see
> http://git.savannah.gnu.org/cgit/lightning.git/commit/?id=79bc3d03dd1c76d8a37ed3c12becbd9b71c142be

  Now I implemented jit_set_data to use an alternate, or disable the data
buffer, see
http://git.savannah.gnu.org/cgit/lightning.git/commit/?id=33ee2337c7cad06b40fa1179f97e0c6ef2bd3dc9

  Most common usage should be to disable constants and debug notes.
On a few ports it already does not use a constant data buffer (aarch64
and arm, and maybe would be better so also in mips). The common
usage should be:

    jit_realize();
    jit_set_data(NULL, 0, JIT_DISABLE_DATA | JIT_DISABLE_NOTE);

  To have only a pure code buffer, and if you also did use jit_set_code(),
you can safely call jit_destroy_state() to release all memory and still
have the code buffer.
  If you call jit_set_data you must give a valid pointer unless disabling
data constants and debug notes.

  To query the space, after jit_realize, call:

  jit_get_note(&data_size, &note_size);

  One of my next steps should be to add detailed documentation to
lightning.info, as only the new test cases are not descriptive enough
about the usage.

  Thanks,
Paulo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]