且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在C中获取全局变量的初始化信息?

更新时间:2023-11-15 09:45:46

I有一个类似的问题是由填充位置之前在通行列表中提前运行引起的。有人建议我使用Phx.Utility.GetInitialValue。以下行为我解决了(我可以访问修正)。

Phx.IR。

DataInstruction dataInstruction = Phx。 Utility .GetInitialValueNoDereference(globalVariableSymbol, ref biasByteOffset);
I had a similar problem that was caused by running early in the pass list, before the Location was populated. It was suggested that I use Phx.Utility.GetInitialValue. The following line solved it for me (I could access the fixups).

Phx.IR.

DataInstruction dataInstruction = Phx.Utility.GetInitialValueNoDereference(globalVariableSymbol, ref biasByteOffset);