Re: Modify Xtensa instruction relaxation

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

 



Hi Daniel,

On Mon, Jul 31, 2023 at 12:21 PM <daniel@xxxxxxxxxxx> wrote:
> I would like to modify the relaxation behavior of Xtensa assembly.
> Furthermore, I only want to modify the last relaxation of a call8
> instruction.
>
> So my question is: how do I know which is the last relaxation in a
> function?

Could you elaborate a bit on the "last" part. Last in what sense?

> I already know that one of the last relaxations is done in
> convert_frag_immed() in tc-xtensa.c. Can I somehow tell from the segment
> pointer or fragment pointer if I'm at the end of a function?

I don't think so. On the other hand windowed functions always begin
with the entry instruction and end with either retw or retw.n instruction.

-- 
Thanks.
-- Max




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux