This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [patch] libc/sys/h8300hms/crt0.S: Optimize.


Kazu Hirata wrote:
> 
> Hi,
> 
> Attached is a patch to optimize libc/sys/h8300hms/crt0.S.
> 
> OK to apply?  (I think I have a write access.)
> 

I have checked in the patch.  

Regards,

-- Jeff Johnston (Red Hat Inc.)

> Thanks,
> 
> Kazu Hirata
> 
> ===File ~/gnu/newlib/ChangeLog-crt0.S=======================
> 2000-08-30  Kazu Hirata  <kazu@hxi.com>
> 
>         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
> 
> ============================================================
> 
> ===File ~/gnu/newlib/crt0.S.patch===========================
> Index: crt0.S
> ===================================================================
> RCS file: /cvs/src/src/newlib/libc/sys/h8300hms/crt0.S,v
> retrieving revision 1.1.1.1
> diff -u -r1.1.1.1 crt0.S
> --- crt0.S      2000/02/17 19:39:50     1.1.1.1
> +++ crt0.S      2000/08/30 19:55:44
> @@ -8,7 +8,7 @@
>         mov.w   #_stack,sp
>         mov.w   #_edata,r0
>         mov.w   #_end,r1
> -       mov.w   #0,r2
> +       sub.w   r2,r2
>  .loop: mov.w   r2,@r0
>         adds    #2,r0
>         cmp     r1,r0
> @@ -31,7 +31,7 @@
>         mov.l   #_stack,sp
>         mov.l   #_edata,er0
>         mov.l   #_end,er1
> -       mov.w   #0,r2           ; not sure about alignment requirements
> +       sub.w   r2,r2           ; not sure about alignment requirements
>  .loop: mov.w   r2,@er0         ; playing it safe for now
>         adds    #2,er0
>         cmp.l   er1,er0
> @@ -54,7 +54,7 @@
>         mov.l   #_stack,sp
>         mov.l   #_edata,er0
>         mov.l   #_end,er1
> -       mov.w   #0,r2           ; not sure about alignment requirements
> +       sub.w   r2,r2           ; not sure about alignment requirements
>  .loop: mov.w   r2,@er0         ; playing it safe for now
>         adds    #2,er0
>         cmp.l   er1,er0
> ============================================================

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]