Re: [SharpOS Developers] SharpOS

3 views
Skip to first unread message

William Lahti

unread,
Feb 1, 2011, 7:38:20 PM2/1/11
to Darko Juric, SharpOS Development List, SharpOS Board
Hello Darko, 

There is no guarantee that the Milestone 0.0.1 release compiles on the latest Visual Studio. I cannot provide a detailed solution for your problem, but from the sounds of it, you may be generating a kernel executable which is using newer .NET features in the IL code which are not supported by the AOT compiler. Try lowering the framework target version from the project settings if possible. I believe we were targetting .NET 2.0 but that might not be exactly the case. There is also newer code available in our Subversion repository on SourceForge.net (http://sharpos.sf.net/)

Good luck!

On Mon, Jan 31, 2011 at 11:19 PM, Darko Juric <Darko...@fer.hr> wrote:

Dear Sir,

  I've tried to compile SharpOS with VS 2010 (source has been downloaded from sourceforge.net (zip file)) unsuccessfully.
  Two images has been made to show the error.
  Am I'm doing something wrong ?

  The main reason why I'm doing this is that I would (maybe) enroll a subject named "Embedded OS-es" which is dealing with building operating systems from entry-level and I'm considering as an option to use C# and AOT as tools for accomplishing this.

But it would be great if I could first compile it... :)
...and sorry for my bad English

Thank You


Matthijs ter Woord

unread,
Feb 2, 2011, 2:25:08 AM2/2/11
to sharpos-d...@lists.sourceforge.net
IL has remained unchanged since .NET 2.0. Extension methods are just compiler metadata (1 single attribute, together with source compiler support), LINQ are just extension methods with source compiler support, .net 4.0 dynamic objects is all implemented using .net extension methods, so might be something else..

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
SharpOS-Developers mailing list
SharpOS-D...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sharpos-developers


William Lahti

unread,
Feb 2, 2011, 7:39:19 AM2/2/11
to SharpOS Development List, Matthijs ter Woord
On Wed, Feb 2, 2011 at 2:25 AM, Matthijs ter Woord <matthijs...@gmail.com> wrote:
IL has remained unchanged since .NET 2.0. Extension methods are just compiler metadata (1 single attribute, together with source compiler support), LINQ are just extension methods with source compiler support, .net 4.0 dynamic objects is all implemented using .net extension methods, so might be something else..

This may be true, but technically the AOT (especially in the 0.0.1 release) probably does not actually handle all normal IL operations. If the new features have caused older code which worked to expose something using any of these features, this could be the cause. One example is support for strings. I don't recall if full string support was present in 0.0.1 or not, but for a long time we had to specially craft our string constant usage to use an AOT-provided converter to an IntPtr so that strings could be used without the runtime being active. We later had much nicer string support but code like:

string str = "hello world";

would typically cause an error from the AOT similiar to what you got. It certainly could be something else though. Let us know what you find out :-)

Just sayin' 

PS: I CCed my original reply to the list and you sent a reply to that direct to the list. If you aren't already subscribed to the developers list, you will likely want to sign up from sourceforge (sharpos.sf.net).
Reply all
Reply to author
Forward
0 new messages