什么是F#的FSharp.Core.optdata和FSharp.Core.sigdata文件?文件、Core、FSharp、sigdata

2023-09-03 04:43:10 作者:梦里有她、别叫醒我

这两个文件似乎驻留在F#的目录,以及FSharp.Core.dll。 这两个文件似乎麻烦不断的一个根源如果忘记把它们放在一起FSharp.Core.dll。 他们似乎是二进制文件,所以我没能发现他们的目的。

Both files seem to reside in F#'s directory, along with FSharp.Core.dll. Both files seem to be a constant source of trouble if one forgets to put them together with FSharp.Core.dll. They seem to be binary files so I wasn't able to uncover their purpose.

我用Google搜索了一下这两个文件,​​但似乎没有成为一个明确的回答我的问题。 So..what是他们在F#中的功能?

I googled a bit both files but there doesn't seem to be a clear answer to my question. So..what is their function in F#?

推荐答案

Optdata绝对是最优化的数据,它被写成了恩codeOptimizationData 部分功能编译器。 FSharp.Core 有这些信息存储在外部文件,而不是嵌入在资源清单。

Optdata is definitely optimisation data, it is written as part of the EncodeOptimizationData function in the compiler. FSharp.Core has this information stored in an external file rather than embedded in the resource manifest.

sigdata是连接codeD与恩codeInterfaceData ,并包含了F#类型签名/接口的信息。 FSharp.Core FSharp.Compiler.Silverlight FSharp.LanguageService.Compiler 所有这些信息存储在外部文件,而不是嵌入在资源清单。

sigdata is encoded with EncodeInterfaceData and contains information about the signatures/interfaces for the F# types. FSharp.Core, FSharp.Compiler.Silverlight and FSharp.LanguageService.Compiler all have this information stored in an external file rather than embedded in the resource manifest.

由于 FSharp.Core 不包含在它的资源之一,这些表现,他们必须要present外,这个原因我不确定,但。

As FSharp.Core does not contain either of these in its resource manifest they have to be present externally, Im not sure of this reason though.

用户产生的F#文件,编译时有此信息的连接codeD到资源清单,你可以看到这一点,如果你看的元数据。

User produced F# files, when compiled, have this information encoded into the resource manifest, you can see this if you look at the metadata.

 
精彩推荐
图片推荐