Minor improvement to H8 startup code

Jeff Johnston jjohnstn@redhat.com
Sat Dec 30 21:46:01 GMT 2023


Ok.  Can we call this one the last for snapshot?  I would like to do the
snapshot before Jan 1st.

-- Jeff J.

On Fri, Dec 29, 2023 at 10:57 PM Jeff Law <jeffreyalaw@gmail.com> wrote:

> Basically the startup code needs to clear memory from _edata to _end.
> In the past it's been done with a fairly naive copy loop.  This changes
> the code to just call memset and let memset figure out a sensible way to
> handle the operation given the size and alignment requirements.
>
> I don't have performance data on this.  I cobbled it together some time
> ago in response to seeing some of the GCC tests with larger .bss
> sections taking an insane amount of time to just get from _start to
> main.  With the fixes to the H8 decoder in the simulator it may not
> matter nearly as much anymore.
>
> This has been in my tester for months.  Naturally it does not cause any
> regressions in the H8 port.
>
> OK for the trunk?
>
> Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/newlib/attachments/20231230/cdb10972/attachment.htm>


More information about the Newlib mailing list