From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web11.6114.1572447592457112716 for ; Wed, 30 Oct 2019 07:59:52 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: liming.gao@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Oct 2019 07:59:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,247,1569308400"; d="scan'208,217";a="205806793" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 30 Oct 2019 07:59:51 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 30 Oct 2019 07:59:51 -0700 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 30 Oct 2019 07:59:35 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.127]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.225]) with mapi id 14.03.0439.000; Wed, 30 Oct 2019 22:59:33 +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: AdWOR9X5G+y6vm90SA6cGAxrhO85dAA6kRlw Date: Wed, 30 Oct 2019 14:59:32 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E534D53@SHSMSX104.ccr.corp.intel.com> References: <4fa882af7f4542ce82e609ed8b740919@zhaoxin.com> In-Reply-To: <4fa882af7f4542ce82e609ed8b740919@zhaoxin.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGNkMzJjNWQtYzU0Ny00N2YwLTgyZjQtZDVmYmI1ZTdjYzU1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiQnlVcTFGZEJBM3F1RklNWStmQmFFVGlDMkhLd2FpVUYrNWJmSlwvTzZlTERwK2F1OEtxTnRSTnJkUm9FbjVFMzEifQ== dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action 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_4A89E2EF3DFEDB4C8BFDE51014F606A14E534D53SHSMSX104ccrcor_" --_000_4A89E2EF3DFEDB4C8BFDE51014F606A14E534D53SHSMSX104ccrcor_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 Tk9PUFQgaXMgYnVpbGQgdGFyZ2V0LiBJdCBpbmNsdWRlcyB0aGUgY29tcGlsZXIgb3B0aW9uIHRv IGRpc2FibGUgb3B0aW1pemF0aW9uLiBJZiB0aGUgcGxhdGZvcm0gc3VwcG9ydHMgTk9PUFQgdGFy Z2V0LCBpdCBjYW4gYmUgYnVpbHQgd2l0aCAtYiBOT09QVC4NCg0KUGNkT3B0aW1pemVDb21waWxl ckVuY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6tytrIqLXEsunU xKGiyrnTw6GiuLTWxrvy16q3oqGjDQpDT05GSURFTlRJQUwgTk9URToNClRoaXMgZW1haWwgY29u dGFpbnMgY29uZmlkZW50aWFsIG9yIGxlZ2FsbHkgcHJpdmlsZWdlZCBpbmZvcm1hdGlvbiBhbmQg aXMgZm9yIHRoZSBzb2xlIHVzZSBvZiBpdHMgaW50ZW5kZWQgcmVjaXBpZW50LiBBbnkgdW5hdXRo b3JpemVkIHJldmlldywgdXNlLCBjb3B5aW5nIG9yIGZvcndhcmRpbmcgb2YgdGhpcyBlbWFpbCBv ciB0aGUgY29udGVudCBvZiB0aGlzIGVtYWlsIGlzIHN0cmljdGx5IHByb2hpYml0ZWQuDQoNCg== --_000_4A89E2EF3DFEDB4C8BFDE51014F606A14E534D53SHSMSX104ccrcor_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

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

From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Tig= er Liu(BJ-RD)
Sent: Tuesday, October 29, 2019 7:01 PM
To: devel@edk2.groups.io
Subject: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable

 

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= .

--_000_4A89E2EF3DFEDB4C8BFDE51014F606A14E534D53SHSMSX104ccrcor_--