Hi, Andrew:
Got it.
Thank you very much.
Best wishes,
发件人: devel@edk2.groups.io 代表 Andrew Fish via groups.io
发送时间: 2020年8月6日 11:46
收件人: edk2-devel-groups-io ; Tiger Liu(BJ-RD)
抄送: Mike Kinney ; Gao, Liming
主题: Re: [edk2-devel] question about MSFT compiler/link option
On Aug 5, 2020, at 8
t; I checked map file, not find this global data array.
>>
>> I found if added this build option in this PEIM's inf, then it seems
>> ok.
>> [BuildOptions]
>> MSFT:*_*_IA32_CC_FLAGS = /Gw-
>>
>> Thanks
>>
>> -邮件原件-
>&
发件人: devel@edk2.groups.io 代表 Michael D Kinney
发送时间: 2020年8月5日 23:18
收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) ; Gao, Liming
; Kinney, Michael D
主题: Re: [edk2-devel] question about MSFT compiler/link option
Hi,
I think you are seeing the impact of compiler optimizations.
If a global variable is n
> -Original Message-
> From: devel@edk2.groups.io On
> Behalf Of Tiger Liu(BJ-RD)
> Sent: Tuesday, August 4, 2020 11:34 PM
> To: devel@edk2.groups.io; Gao, Liming
>
> Subject: Re: [edk2-devel] question about MSFT
> compiler/link option
>
> Hi, Liming:
> Thanks for yo
:21
收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD)
主题: Re: [edk2-devel] question about MSFT compiler/link option
If this global variable is used by code, it will be linked into the final EFI
image. You can check whether the generate map file includes it.
> -Original Message-
> From:
To: devel@edk2.groups.io
> Subject: [edk2-devel] question about MSFT compiler/link option
>
> Hi, Experts:
> I have a question about MSFT compiler/link option.
>
> I wrote a PEIM, which had a large global data array definition in a C file.
> Such as:
> PRI_DATA_STRUCT Pdata
Hi, Experts:
I have a question about MSFT compiler/link option.
I wrote a PEIM, which had a large global data array definition in a C file.
Such as:
PRI_DATA_STRUCT PdataStructTable[] = {
{01, 0x75,0xF0, 0x0, 0x0, 0x0 },
{02, 0x77,0xF0, 0x0, 0x0,