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

Re: [Xen-devel] [PATCH v2 for-next 2/2] x86/string: Use compiler __builtin_str*() where possible



Hi Andrew,

On 05/12/2017 04:50 PM, Andrew Cooper wrote:
On 12/05/17 16:42, Julien Grall wrote:

Furthemore, someone mentioned a potential legal issue to linked
against the built-in. Anyone heard about that?

The main use of these are optimising things like strlen("literal") at
compile time.  The use of -fno-bultin disables this optimisation, but as
we dont link against any runtime libraries, we still provide the
underling implementation in the case that __builtin_*() fall back to a
straight function call.

I can't see any possibility for legal issues here.  It is all down to
exactly which instructions your compiler wants to assemble.

Thank you for the explanation. I misundertood what you suggested. I guess this should be fine for ARM.

I will have a look if we can leverage built-in too.

Cheers,

--
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.