❔ 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
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.
the problem is... i'm not sure what the compiler expects the EEType object to be
i mean - i know it works with these fields (keep in mind this is a sequential struct)
so EEType is a compiler intrinsic - but i can't find the details about the intrinsic :/
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 ^^'>Import Address Table probably
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
oh, alright, thanks! will ask there
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.