Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: Fewer mallocs is better, episode #47
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Henrik Holst via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 1 Feb 2022 14:18:12 +0100
sorry if I was not clear, it did neither, with -O3 gcc 11.2 did either
strlen+memcpy or strcpy, no transformation.
Den tis 1 feb. 2022 kl 14:08 skrev Cristian RodrÃguez <
crrodriguez_at_opensuse.org>:
> On Tue, Feb 1, 2022 at 9:46 AM Henrik Holst
> <henrik.holst_at_millistream.com> wrote:
> >
> > Tried it quickly in the compiler explorer and gcc 11.2 did not detect
> that it could convert it to a strcpy.
>
> I think you misunderstood me, gcc will not transform memcpy to
> strcpy.. but strcpy, strcat, etc.. *to* the equivalent calls to memcpy
> or stpcpy..
>
Date: Tue, 1 Feb 2022 14:18:12 +0100
sorry if I was not clear, it did neither, with -O3 gcc 11.2 did either
strlen+memcpy or strcpy, no transformation.
Den tis 1 feb. 2022 kl 14:08 skrev Cristian RodrÃguez <
crrodriguez_at_opensuse.org>:
> On Tue, Feb 1, 2022 at 9:46 AM Henrik Holst
> <henrik.holst_at_millistream.com> wrote:
> >
> > Tried it quickly in the compiler explorer and gcc 11.2 did not detect
> that it could convert it to a strcpy.
>
> I think you misunderstood me, gcc will not transform memcpy to
> strcpy.. but strcpy, strcat, etc.. *to* the equivalent calls to memcpy
> or stpcpy..
>
-- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2022-02-01