Re: [Mono-dev] Jit and C# Compiler
To simply this task maybe use OpenMP http://www.openmp.org Martin Hinks [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Do you plan to automatically detect when parallel usage is possible or will it be something that the C# program's author can specify? Martin On 10/5/06, Cedric Vivier [EMAIL PROTECTED] wrote: Hi! Sounds very interesting! If I am correct you want to detect (thus extract) parallelism from a CIL image right? Do you have any research paper describing the algorithm you plan to use ? Please keep us informed of your advancement :) -- cv 2006/10/5, Khaled A. K. Mohammed [EMAIL PROTECTED] : Hi, I am doing a course on compiler. I am planning to choose a project based on .NET Framework/Mono. I am briefly describing the project below. The project will aim to improve the execution of CIL image on multicore processors. First step is to change the C# compiler to insert custom instructions into the managed binary (just like how the line #s are stored). These instructions will be parsed by JIT to pick valuable information about instruction dependency and will be able to make smart decisions. Yes, the size of binaries will grow. We will work for a optimal solutions - may be by having a percentage size threshold. This is a research/school project to prove a concept. Lots of comments/suggestions are welcomed. Regards, Khaled ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list -- Martin Hinks http://www.m-s-d.net ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] CreateDelegate Exception
using 1.1.16 I on Linux, the application and assemblies are compiled using VS.2005, when attempting to Create.CreateDelegate the following exeception occurs: System.InvalidProgramException: Missing or incorrect header for method GetPropertiesViaEvent at 0x0 unknown method at (wrapper managed-to-native) System.Delegate:CreateDelegate_internal (System.Type,object,System.Reflection.MethodInfo) at System.Delegate.CreateDelegate (System.Type type, System.Object target, System.Reflection.MethodInfo method) [0x0] at XNetSystemManager.XNetSysPlugin.GetProperties (System.String sInterface, XNetSystemManager.DictionaryPropertyArgs Propargs, System.EventHandler`1 receiveResponses, XNetEventManager.DictionaryEventArgs args) [0x0] ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] CreateDelegate Exception
Some more information, the code is as follows: Delegate.CreateDeletegate(typeof(call),classObj, myMethodInfo); Before this function is called print out some information: myMethodInfo.Name is GetPropertiesViaEventTCI.IUIToolComm The method in the assembly is declared as GetPropertiesViaEvent, the Module name is TCI and the module uses a interface called IUIToolComm, is there a name difference how VS.NET handles it compared to mono? Or is the name lookup for the delegate incorrect? tcmichals [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] using 1.1.16 I on Linux, the application and assemblies are compiled using VS.2005, when attempting to Create.CreateDelegate the following exeception occurs: System.InvalidProgramException: Missing or incorrect header for method GetPropertiesViaEvent at 0x0 unknown method at (wrapper managed-to-native) System.Delegate:CreateDelegate_internal (System.Type,object,System.Reflection.MethodInfo) at System.Delegate.CreateDelegate (System.Type type, System.Object target, System.Reflection.MethodInfo method) [0x0] at XNetSystemManager.XNetSysPlugin.GetProperties (System.String sInterface, XNetSystemManager.DictionaryPropertyArgs Propargs, System.EventHandler`1 receiveResponses, XNetEventManager.DictionaryEventArgs args) [0x0] ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] [PATCH] System.Net.Sockets.TcpListener 2.0 Updates
When will this be added to TcpListener? Ivan N. Zlatev [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The attached patch includes updates for the TcpListener class to .Net 2.0. Please someone review and commit. Cheers, -- Ivan N. Zlatev Web: http://www.i-nZ.net GPG Key: http://files.i-nZ.net/i-nZ.asc It's all some kind of whacked out conspiracy. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] StructLayout with misaligned offsets
namespace testCode { class Program { [StructLayout(LayoutKind.Sequential, Pack = 1 /*, CharSet = CharSet.Ansi */)/*, Serializable*/] public struct tagSDK { [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)] public ushort[] inter; public ushort integ; public ushort mode; public ushort imaging; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)] public ushort[] Avg; public ushort numOfIntervals; public tagSDK(int val) { this.inter = new ushort[12]; this.inter[0] = 0; this.Avg = new ushort[12]; Avg[0] = 0; integ = 0; imaging = 0; imaging2 = 0; numOfIntervals = 0; mode = 0; } }; static void Main(string[] args) { tagSDK t= new tagSDK(0); Console.WriteLine(Hello World); } } } When I attempt to execute the following program the following message is generated * ERROR **: file object.c: line 509 (compute_class_bitmap): assertion failed: ((field-offset % sizeof(gpointer)) == 0) If I change The alignment of Avg to be on a 4 byte boundry it works, sugguestions? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Re: StructLayout with misaligned offsets
I'm also using the same method on other struct's and getting different sizes between mono 1.1.14 and 2.0 .NET, the .NET version is giving me the correct sizes, would this also be considered the same issue? I'm trying use the StructLayout to overlay the same data structures used bettwen C++ and C#. Zoltan Varga [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, This is a known bug and it is tracked as: http://bugzilla.ximian.com/show_bug.cgi?id=77788 Zoltan On 4/12/06, tcmichals [EMAIL PROTECTED] wrote: namespace testCode { class Program { [StructLayout(LayoutKind.Sequential, Pack = 1 /*, CharSet = CharSet.Ansi */)/*, Serializable*/] public struct tagSDK { [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)] public ushort[] inter; public ushort integ; public ushort mode; public ushort imaging; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)] public ushort[] Avg; public ushort numOfIntervals; public tagSDK(int val) { this.inter = new ushort[12]; this.inter[0] = 0; this.Avg = new ushort[12]; Avg[0] = 0; integ = 0; imaging = 0; imaging2 = 0; numOfIntervals = 0; mode = 0; } }; static void Main(string[] args) { tagSDK t= new tagSDK(0); Console.WriteLine(Hello World); } } } When I attempt to execute the following program the following message is generated * ERROR **: file object.c: line 509 (compute_class_bitmap): assertion failed: ((field-offset % sizeof(gpointer)) == 0) If I change The alignment of Avg to be on a 4 byte boundry it works, sugguestions? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Re: StructLayout with misaligned offsets
Also found this information, removing the MarshalAs and use discrete variables works, ie // public ushort Avg0; // [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)] //public ushort[] Avg; public ushort Avg0;public ushort Avg1;public ushort Avg2;public ushort Avg3;public ushort Avg4;public ushort Avg5;public ushort Avg6; public ushort Avg7;public ushort Avg8;public ushort Avg9;public ushort Avg10;public ushort Avg11; also, [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi), Serializable] public struct byteD { ushort Lo, Hi; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)] byte[] Comment; }; [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi), Serializable] public struct charD { ushort Lo, Hi; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)] char [] Comment; }; Console.WriteLine(byteD + Marshal.SizeOf(typeof(byteD)).ToString() + charD + Marshal.SizeOf(typeof(charD)).ToString()); Ouputs on .NET 2.0 Hello World byteD 36 charD 36 On 1.1.14 Hello World byteD 36 charD 68 Zoltan Varga [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, This is a known bug and it is tracked as: http://bugzilla.ximian.com/show_bug.cgi?id=77788 Zoltan ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list