From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) by mx.groups.io with SMTP id smtpd.web11.9768.1584021239941230932 for ; Thu, 12 Mar 2020 06:54:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=JsdVGWyk; spf=pass (domain: nuviainc.com, ip: 209.85.222.193, mailfrom: leif@nuviainc.com) Received: by mail-qk1-f193.google.com with SMTP id u25so6267230qkk.3 for ; Thu, 12 Mar 2020 06:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7MbwW0DWFgYpf6/Ehd1BLonp2NJFMKC5IilICWjSzwE=; b=JsdVGWykS6i/pSaGU2y0dQqnmyIO/gOR2ozoWNanljp9OBqx7VARGBu1yN4o1voe9z VpSGFSvuvW5n6+9lEEFFMXSvdc8hz4JpKGwTT2zG0Y0/ShJcgdEaNguugd7y5B65dGNP sNVbWWBQoYWMri4fjBzwW4Kq2kTmbhywxxwVL+MlehugmYUTXmUv8SxmHdck125dbT6m qBhs2vyxoOR8u0gk5OxdCEAA3V8D0sbXwAsKRpKC8NrjOBceNn60ZpmlbFUsY4foCBJM kKT5kXFRJmgsoUUUGsR5YQDW+1dA6+sNAqKBdZen7jJp6dRa/Ad72H6SADBcExRSK3ME hNTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7MbwW0DWFgYpf6/Ehd1BLonp2NJFMKC5IilICWjSzwE=; b=Mcl2m0oucD3/yj3RtMyXHBSP+FvQUw/Tr5zy+PuwOjAYsqySzenwB+q8gIMEXlYi4h NprlBDs9XXCqYCWIoySdUyvXZDXwWrbzRyy8HtYlRwH7p+xQHTa/1pcY3KVKeuJQVZF4 v7qHqkafGklNzmfV5kj9KMzWsxBOLtTRqPIq0e54Icw51eK2A+VmFnMgUhPMlhOfF9qi tap6gPglj+1shL9d2ZHP/9RwvHg2K7GOqszkmA46mPiCFdpIxM/qFCJzEqwrI009Tgrl HeZYPISkBEDeOTB6WZEQJmkcNnulPkBukxtfEYVSiXDYy3+L160gWFIN3nsQ+dTz91Uq NaFg== X-Gm-Message-State: ANhLgQ2Q/CJDTwKmNV/GgdivOu5zjAcQIHoNzryvJG5ZpTkIwWVhNLjY cnGiZF2aawXAXRqaW+tDRuV+srTZj7wGVgAfYuBgtA== X-Google-Smtp-Source: ADFU+vvsPTvebXFEkldAVZiH4Os5GQ2qPJy7w1Bf7/Tbvf1V0489nwBHGXYySLqkUTbs76aaDCZCGvrYGsgHdUNcWBc= X-Received: by 2002:a25:9d86:: with SMTP id v6mr8500043ybp.263.1584021239087; Thu, 12 Mar 2020 06:53:59 -0700 (PDT) MIME-Version: 1.0 References: <20200302103238.25726-1-daniel.schaefer@hpe.com> <20200302103238.25726-4-daniel.schaefer@hpe.com> <20200312105528.GC23627@bivouac.eciton.net> <734D49CCEBEEF84792F5B80ED585239D5C4938CD@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <734D49CCEBEEF84792F5B80ED585239D5C4938CD@SHSMSX104.ccr.corp.intel.com> From: "Leif Lindholm" Date: Thu, 12 Mar 2020 13:53:47 +0000 Message-ID: Subject: Re: [EXTERNAL] RE: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment To: "Ni, Ray" Cc: "devel@edk2.groups.io" , "daniel.schaefer@hpe.com" , Abner Chang , Gilbert Chen , "Bi, Dandan" , "Dong, Eric" Content-Type: multipart/alternative; boundary="00000000000045de8805a0a8af0c" --00000000000045de8805a0a8af0c Content-Type: text/plain; charset="UTF-8" Hi Ray, On Thu, Mar 12, 2020 at 12:21 PM Ni, Ray wrote: > Does CompilerIntrinsicsLib exist because GCC doesn't support to disable intrinsic? It is not possible to disable all intrinsics on 32-bit ARM, and it's not necessarily desirable to do so for AArch64 (so I don't think it's implemented). Note that this is somewhat true for x86 too - leading to things like DivU64x32 in BaseLib. > How does the linker find the CompilerInstrinsicsLib in linking phase? For example: https://github.com/tianocore/edk2/blob/master/MdeModulePkg/MdeModulePkg.dsc#L172 Regards, Leif --00000000000045de8805a0a8af0c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Ray,

On Thu, Mar 12, 2020 = at 12:21 PM Ni, Ray <ray.ni@intel.co= m> wrote:
> Does CompilerIntrinsicsLib exist because GCC doesn= 't support to disable intrinsic?

It is not possi= ble to disable all intrinsics on 32-bit ARM, and it's not necessarily d= esirable to do so for AArch64 (so I don't think it's implemented).<= br>

Note that this is somewhat true for x86 too - = leading to things like DivU64x32 in BaseLib.

> = How does the linker find the CompilerInstrinsicsLib in linking phase?
=

For example:
--00000000000045de8805a0a8af0c--