Re: [SharpOS Developers] AOT issues with generics?

2008-03-15 Thread grover
Actually I've looked into patching it the "proper" way, but stopped. There's not enough documentation imho how the AOT generates code and what should've been generated. I'd wish for more commenting about the process in general. I'd love to improve the AOT, but the code is freaking me out. Maybe I

Re: [SharpOS Developers] AOT issues with generics?

2008-03-15 Thread Stanisław Pitucha
On Sat, Mar 15, 2008 at 1:06 PM, grover <[EMAIL PROTECTED]> wrote: > I'm looking into it. I've created another small patch, which seems to almost > work, except for a problem with the register allocation, which I can't fix > right now. I think it's the wrong place to patch it - just in case you'

Re: [SharpOS Developers] AOT issues with generics?

2008-03-15 Thread Sander van Rossen
cool. I'll just wait untill darxkies looks at it, since he's the one working on generics (and the mastermind behind the AOT compiler) On Sat, Mar 15, 2008 at 2:06 PM, grover <[EMAIL PROTECTED]> wrote: > I'm looking into it. I've created another small patch, which seems to almost > work, except for

Re: [SharpOS Developers] Introduction and SharpOS design goals questions

2008-03-15 Thread Sander van Rossen
Hi On Sat, Mar 15, 2008 at 1:21 AM, grover <[EMAIL PROTECTED]> wrote: > Hi, > > I just stumbled upon SharpOS about two days ago and have been reading things > on the website, wiki and browsed through the source code. The website really needs more documentation and the documentation that we have

Re: [SharpOS Developers] AOT issues with generics?

2008-03-15 Thread grover
I'm looking into it. I've created another small patch, which seems to almost work, except for a problem with the register allocation, which I can't fix right now. The line foreach (INode node in _devices), where _devices is a InternalSystem.Collections.Generic.List doesn't pass the AOT. With this

Re: [SharpOS Developers] AOT issues with generics?

2008-03-15 Thread Sander van Rossen
This is a known problem, generics haven't been fully implemented yet. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/

[SharpOS Developers] Another patch for SharpOS.AOT.IR.Class for generic class method lookups and exceptions

2008-03-15 Thread grover
Hi, This patch fixes class name lookups for generic types in GetMethodByName (comment in the patched source code). It failed to properly lookup InternalSystem.Collections.Generic.List´1..ctor() in my case. This patch fixes all lookups related to it. I rewrote a couple of exceptions to output the

[SharpOS Developers] AOT issues with generics?

2008-03-15 Thread grover
I'm trying to compile some code, which uses generic lists. I'm getting the following exception upon running the AOT on the Kernel: Error: SharpOS.AOT.IR.EngineException: Method 'InternalSystem.Collections.Generic.List`1.get_Count()' not found. bei SharpOS.AOT.IR.Class.GetMethodByName(MethodRefe

[SharpOS Developers] Patch for exceptions thrown by SharpOS.AOT.IR.Class

2008-03-15 Thread Michael Ruck
This patch helped me find some unsupported/not implemented stuff I was using while working on a VFS design. grover class.patch Description: Binary data - This SF.net email is sponsored by: Microsoft Defy all challenges. Micr