C
C#2y ago
ascpixi

❔ Documentation on the AOT runtime's internal type system (EEType)?

I'm trying to create my own operating system in C#, using the ZeroSharp repository (https://github.com/MichalStrehovsky/zerosharp) and looking to RoseOS (https://github.com/Michael-Kelley/RoseOS) for guidance. Right now, I'm implementing the core library (corelib), and I've encountered the EEType type. From my research, this type represents the type of an object internally, and is present in every System.Object instance. There is close to no documentation for this type, since it's used internally, and the only implementation I've seen on this is the one in CoreRT (https://github.com/dotnet/corert/blob/master/src/Common/src/Internal/Runtime/EEType.cs). I've tried documenting this type so I could understand it later on, but this has proven very difficult in practice. Is there any documentation written for this? Or is there any documentation that would help me with writing my own core library, including these internal runtime types? Thanks!
9 Replies
Anton
Anton2y ago
I think there's no spec because it's internal. As long as you implement the interface, you're free to choose the implementation details.
ascpixi
ascpixiOP2y ago
the problem is... i'm not sure what the compiler expects the EEType object to be
ascpixi
ascpixiOP2y ago
i mean - i know it works with these fields (keep in mind this is a sequential struct)
ascpixi
ascpixiOP2y ago
so EEType is a compiler intrinsic - but i can't find the details about the intrinsic :/
ascpixi
ascpixiOP2y ago
i also see a lot of mentions of "IAT" in the CoreRT implementation but google gives me nothing, and searching for "iat" "C#" returns json web token related results... i don't think that's what it is ^^'>
mtreit
mtreit2y ago
Import Address Table probably
reflectronic
reflectronic2y ago
if you have specific questions, i suggest you ask in #allow-unsafe-blocks. Michal, who is the steward of NativeAOT, checks there from time to time and probably can answer any question you have he likes seeing people use NativeAOT so i am sure he will be happy to answer
ascpixi
ascpixiOP2y ago
oh, alright, thanks! will ask there
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server