From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ZXSHCAS2.zhaoxin.com (ZXSHCAS2.zhaoxin.com [203.148.12.82]) by mx.groups.io with SMTP id smtpd.web11.452.1572485996279765934 for ; Wed, 30 Oct 2019 18:39:57 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=SPF record not found (domain: zhaoxin.com, ip: 203.148.12.82, mailfrom: tigerliu@zhaoxin.com) Received: from zxbjmbx3.zhaoxin.com (10.29.252.165) by ZXSHCAS2.zhaoxin.com (10.28.252.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Thu, 31 Oct 2019 09:39:49 +0800 Received: from zxbjmbx2.zhaoxin.com (10.29.252.164) by zxbjmbx3.zhaoxin.com (10.29.252.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Thu, 31 Oct 2019 09:39:48 +0800 Received: from zxbjmbx2.zhaoxin.com ([fe80::4d77:9dba:64a8:8ec3]) by zxbjmbx2.zhaoxin.com ([fe80::4d77:9dba:64a8:8ec3%4]) with mapi id 15.01.1261.035; Thu, 31 Oct 2019 09:39:48 +0800 From: "Tiger Liu(BJ-RD)" To: "devel@edk2.groups.io" , "liming.gao@intel.com" Subject: Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable Thread-Topic: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable Thread-Index: AdWPi6VNG+y6vm90SA6cGAxrhO85dA== Date: Thu, 31 Oct 2019 01:39:48 +0000 Message-ID: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.29.8.18] MIME-Version: 1.0 Return-Path: TigerLiu@zhaoxin.com Content-Language: zh-CN Content-Type: multipart/alternative; boundary="_000_b2a72e2559224dac88aac9fbca4a556bzhaoxincom_" --_000_b2a72e2559224dac88aac9fbca4a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LTWxrvy16q3oqGjDQpDT05GSURFTlRJQUwgTk9URToNClRoaXMgZW1haWwgY29udGFpbnMg Y29uZmlkZW50aWFsIG9yIGxlZ2FsbHkgcHJpdmlsZWdlZCBpbmZvcm1hdGlvbiBhbmQgaXMgZm9y IHRoZSBzb2xlIHVzZSBvZiBpdHMgaW50ZW5kZWQgcmVjaXBpZW50LiBBbnkgdW5hdXRob3JpemVk IHJldmlldywgdXNlLCBjb3B5aW5nIG9yIGZvcndhcmRpbmcgb2YgdGhpcyBlbWFpbCBvciB0aGUg Y29udGVudCBvZiB0aGlzIGVtYWlsIGlzIHN0cmljdGx5IHByb2hpYml0ZWQuDQoNCg0KDQqxo8Pc yfnD96O6DQqxvtPKvP66rNPQsaPD3Lvy16jT0NDFz6KjrL32uanWuLaoytW8/sjLyrnTw6Gj0c+9 +7bUsb7Tyrz+u/LG5MTayN3X9sjOus7OtL6tytrIqLXEsunUxKGiyrnTw6GiuLTWxrvy16q3oqGj DQpDT05GSURFTlRJQUwgTk9URToNClRoaXMgZW1haWwgY29udGFpbnMgY29uZmlkZW50aWFsIG9y IGxlZ2FsbHkgcHJpdmlsZWdlZCBpbmZvcm1hdGlvbiBhbmQgaXMgZm9yIHRoZSBzb2xlIHVzZSBv ZiBpdHMgaW50ZW5kZWQgcmVjaXBpZW50LiBBbnkgdW5hdXRob3JpemVkIHJldmlldywgdXNlLCBj b3B5aW5nIG9yIGZvcndhcmRpbmcgb2YgdGhpcyBlbWFpbCBvciB0aGUgY29udGVudCBvZiB0aGlz IGVtYWlsIGlzIHN0cmljdGx5IHByb2hpYml0ZWQuDQo= --_000_b2a72e2559224dac88aac9fbca4a556bzhaoxincom_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

Hi, Limi= ng:

Thanks f= or your explanation.

&nb= sp;

If setti= ng PcdOptimizeCompilerEna= ble as disable, then will cause D9025 compiling warning.<= /p>

Such as:=

cl : Com= mand line warning D9025 : overriding '/O1' with '/Od'

&nb= sp;

So, is i= t ok?

&nb= sp;

Thanks

=B7=A2=BC=FE=C8=CB: devel@edk2.groups= .io <devel@edk2.groups.io> =B4=FA=B1=ED Liming Gao
=B7=A2=CB=CD=CA=B1=BC=E4: 2019=C4=EA10=D4=C230=C8=D5= 23:00
=CA=D5=BC=FE=C8=CB: devel@edk2.groups.io; Tiger Liu(BJ-RD) <TigerLiu@zhaoxin.com>= ;
=D6=F7=CC=E2: Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable

 

NOOPT is build target. It includes the compiler opti= on to disable optimization. If the platform supports NOOPT target, it can b= e built with -b NOOPT.

 

PcdOptimizeCompilerEnable is one fe= ature PCD defined in edk2-platforms. It can be used to control the compiler= option in [BuildOptions] section. It can also be used for DEBUG or RELEASE target.

 

Thanks

Liming

 

Hi, Al= l:

I have= a question about NOOPT and PcdOptimizeCompilerEnable.

&= nbsp;

If Tar= get =3D NOOPT, then will disable all optimizations.

And Pc= dOptimizeCompilerEnable has the same function.

&= nbsp;

So, Wh= at=A1=AFs the rel= ationship between PcdOptimizeCompilerEnable and NOOPT?

&= nbsp;

Thanks=

&= nbsp;

Best w= ishes,

 

=B1=A3=C3=DC=C9=F9=C3=F7=A3=BA=

=B1=BE=D3=CA=BC=FE=BA=AC=D3=D0=B1=A3=C3=DC=BB=F2=D7=A8=D3=D0=D0=C5=CF= = =A2=A3=AC=BD=F6=B9=A9=D6=B8=B6=A8=CA=D5=BC=FE=C8=CB=CA=B9=D3=C3=A1=A3=D1= =CF=BD=FB=B6=D4=B1=BE=D3=CA=BC=FE=BB=F2=C6=E4=C4=DA=C8=DD=D7=F6=C8=CE=BA= =CE=CE=B4=BE=AD=CA=DA=C8=A8=B5=C4=B2=E9=D4=C4=A1=A2=CA=B9=D3=C3=A1=A2=B8= =B4=D6=C6=BB=F2=D7=AA=B7=A2=A1=A3

CONFIDENTIAL NOTE:

This email contains confidenti= al or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or f= orwarding of this email or the content of this email is strictly prohibited= .



=B1=A3=C3=DC=C9=F9=C3=F7=A3=BA
=B1=BE=D3=CA=BC=FE=BA=AC=D3=D0=B1=A3=C3=DC=BB=F2=D7=A8=D3= = =D0=D0=C5=CF=A2=A3=AC=BD=F6=B9=A9=D6=B8=B6=A8=CA=D5=BC=FE=C8=CB=CA=B9=D3= =C3=A1=A3=D1=CF=BD=FB=B6=D4=B1=BE=D3=CA=BC=FE=BB=F2=C6=E4=C4=DA=C8=DD=D7= =F6=C8=CE=BA=CE=CE=B4=BE=AD=CA=DA=C8=A8=B5=C4=B2=E9=D4=C4=A1=A2=CA=B9=D3= =C3=A1=A2=B8=B4=D6=C6=BB=F2=D7=AA=B7=A2=A1=A3
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and = is for the sole use of its intended recipient. Any unauthorized review, use= , copying or forwarding of this email or the content of this email is stric= tly prohibited.
--_000_b2a72e2559224dac88aac9fbca4a556bzhaoxincom_--