Re: [9fans] Thumb compiler oddity

23 views
Skip to first unread message

David Boddie

unread,
Oct 11, 2023, 4:30:26 PM10/11/23
to 9f...@9fans.net, infer...@googlegroups.com
On Mon Oct 02 09:07:41 2023, Richard Miller wrote:

> > In the meantime, I turned off "registerization" for files that could
> > potentially have similar code.
>
> If you want a more targeted workaround without a performance cost,
> in the example you posted you can force the compiler to reload the
> register by replacing
>
> return y;
>
> with
>
> return *(&y);

Thanks for the workaround. The FDLIBM readme file suggests hacking on the
__HI, __LO, __HIp and __LOp macros, so I'll see what I can come up with.

David

Reply all
Reply to author
Forward
0 new messages