From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web09.521.1572486372297192212 for ; Wed, 30 Oct 2019 18:46:12 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: liming.gao@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Oct 2019 18:46:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,249,1569308400"; d="scan'208,217";a="225534057" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga004.fm.intel.com with ESMTP; 30 Oct 2019 18:46:12 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 30 Oct 2019 18:46:11 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.127]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.149]) with mapi id 14.03.0439.000; Thu, 31 Oct 2019 09:46:10 +0800 From: "Liming Gao" To: "devel@edk2.groups.io" , "tigerliu@zhaoxin.com" Subject: Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable Thread-Topic: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable Thread-Index: AdWPi6VNG+y6vm90SA6cGAxrhO85dAAATpyQ Date: Thu, 31 Oct 2019 01:46:09 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E535229@SHSMSX104.ccr.corp.intel.com> References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: liming.gao@intel.com Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_4A89E2EF3DFEDB4C8BFDE51014F606A14E535229SHSMSX104ccrcor_" --_000_4A89E2EF3DFEDB4C8BFDE51014F606A14E535229SHSMSX104ccrcor_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 WWVzLiBUaGlzIGlzIHRoZSBleHBlY3QgYmVoYXZpb3IuIENvbXBpbGVyIG9wdGltaXphdGlvbiBp cyBkaXNhYmxlZCwgdGhlbiBPZCBvcHRpb24gd2lsbCBiZSB1c2VkIGZvciBWUyB0b29sIGNoYWlu Lg0KDQpGcm9tOiBkZXZlbEBlZGsyLmdyb3Vwcy5pbyBbbWFpbHRvOmRldmVsQGVkazIuZ3JvdXBz LmlvXSBPbiBCZWhhbGYgT2YgVGlnZXIgTGl1KEJKLVJEKQ0KU2VudDogVGh1cnNkYXksIE9jdG9i ZXIgMzEsIDIwMTkgOTo0MCBBTQ0KVG86IGRldmVsQGVkazIuZ3JvdXBzLmlvOyBHYW8sIExpbWlu ZyA8bGltaW5nLmdhb0BpbnRlbC5jb20+DQpTdWJqZWN0OiBSZTogW2VkazItZGV2ZWxdIFtlZGsy XSBOT09QVCBhbmQgUGNkT3B0aW1pemVDb21waWxlckVuYWJsZQ0KDQpIaSwgTGltaW5nOg0KVGhh bmtzIGZvciB5b3VyIGV4cGxhbmF0aW9uLg0KDQpJZiBzZXR0aW5nIFBjZE9wdGltaXplQ29tcGls ZXJFbmFibGUgYXMgZGlzYWJsZSwgdGhlbiB3aWxsIGNhdXNlIEQ5MDI1IGNvbXBpbGluZyB3YXJu aW5nLg0KU3VjaCBhczoNCmNsIDogQ29tbWFuZCBsaW5lIHdhcm5pbmcgRDkwMjUgOiBvdmVycmlk aW5nICcvTzEnIHdpdGggJy9PZCcNCg0KU28sIGlzIGl0IG9rPw0KDQpUaGFua3MNCreivP7Iyzog ZGV2ZWxAZWRrMi5ncm91cHMuaW88bWFpbHRvOmRldmVsQGVkazIuZ3JvdXBzLmlvPiA8ZGV2ZWxA ZWRr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hp cyBlbWFpbCBpcyBzdHJpY3RseSBwcm9oaWJpdGVkLg0KDQqxo8PcyfnD96O6DQqxvtPKvP66rNPQ saPD3Lvy16jT0NDFz6KjrL32uanWuLaoytW8/sjLyrnTw6Gj0c+9+7bUsb7Tyrz+u/LG5MTayN3X 9sjOus7OtL6tytrIqLXEsunUxKGiyrnTw6GiuLTWxrvy16q3oqGjDQpDT05GSURFTlRJQUwgTk9U RToNClRoaXMgZW1haWwgY29udGFpbnMgY29uZmlkZW50aWFsIG9yIGxlZ2FsbHkgcHJpdmlsZWdl ZCBpbmZvcm1hdGlvbiBhbmQgaXMgZm9yIHRoZSBzb2xlIHVzZSBvZiBpdHMgaW50ZW5kZWQgcmVj aXBpZW50LiBBbnkgdW5hdXRob3JpemVkIHJldmlldywgdXNlLCBjb3B5aW5nIG9yIGZvcndhcmRp bmcgb2YgdGhpcyBlbWFpbCBvciB0aGUgY29udGVudCBvZiB0aGlzIGVtYWlsIGlzIHN0cmljdGx5 IHByb2hpYml0ZWQuDQoNCg== --_000_4A89E2EF3DFEDB4C8BFDE51014F606A14E535229SHSMSX104ccrcor_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

Yes. This is the expect behavior. Co= mpiler optimization is disabled, then Od option will be used for VS tool ch= ain.

 

From:<= /span> devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Tiger Liu(BJ-RD)
Sent: Thursday, October 31, 2019 9:40 AM
To: devel@edk2.groups.io; Gao, Liming <liming.gao@intel.com><= br> Subject: Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnabl= e

 = ;

Hi, Liming:<= /span>

Thanks for your explana= tion.

 

If setting PcdOptimizeC= ompilerEnable as disable, then will cause D9025 compiling warning.

Such as:

cl : Command line warni= ng D9025 : overriding '/O1' with '/Od'

 

So, is it ok?

 

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 Li= u(BJ-RD) <TigerLiu@zhaoxin.com>
=D6=F7=CC=E2: Re: [edk2-devel] [edk2] NOOPT and= PcdOptimizeCompilerEnable

 = ;

NOOPT is build target. It includes the compiler option to disable o= ptimization. If the platform supports NOOPT target, it can be built with -b= NOOPT.

 

PcdOptimizeCompilerEnable is one feature PCD defin= ed in edk2-platforms. It can be used to control the compiler option in [Bui= ldOptions] section. It can also be used for DEBUG or RELEASE target.

 

Thanks

Liming

 = ;

Hi, All:

I have a question abo= ut NOOPT and PcdOptimizeCompilerEnable.

 

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

And PcdOptimizeCompil= erEnable has the same function.

 

So, What=A1=AFs the r= elationship between PcdOptimizeCompilerEnable and NOOPT?<= /p>

 

Thanks

 

Best wishes,

&= nbsp;

=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<= /p>

CONFIDENTIAL NOTE:

This email contains confidential or legally p= rivileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding o= f this email or the content of this email is strictly prohibited.

&= nbsp;

=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<= /p>

CONFIDENTIAL NOTE:

This email contains confidential or legally p= rivileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding o= f this email or the content of this email is strictly prohibited.

--_000_4A89E2EF3DFEDB4C8BFDE51014F606A14E535229SHSMSX104ccrcor_--