>well,actually i just want a function that can allocate memory, like >new that i can call in a C# program.
Like Marshal.AllocHGlobal? -Michael > If you want to expose this feature in C# and seemingly integrate into > IL, then it involves: > > - Carefully design the whole thing: Do you really need a new > instruction? Won't be attribute or method enough? If it needs to be a > new instruction, should it be a standalone instruction or prefix? Etc. > > - Add support for the new instruction in the CLR: google for "adding > instruction in Rotor" to find tutorial on how to do that. > > - Modify the C# compiler to accept the new keyword. Look for the > dataflow for the existing new operator (NK_NEW, TID_NEW, CEE_NEWOBJ, > EXF_NEWOBJCALL and bindNew) and modify the codepaths appropriately > depending on what your instruction does exactly. > > -Jan > > -----Original Message----- > From: Discussion of the Rotor Shared Source CLI implementation > [mailto:[EMAIL PROTECTED] On Behalf Of Archana > Sent: Monday, August 23, 2004 9:49 PM > To: [EMAIL PROTECTED] > Subject: [DOTNET-ROTOR] adding a new alloc function > > Hi, > incase one needs to add a new alloc function apart from getting memory > using the operator new, what are the changes involved in doing so. what > all files in Rotor need to change etc.. > eg: x=new object(), x = new1 object(); > Thanks, > archana > =================================== This list is hosted by DevelopMentor. http://www.develop.com ASP.NET courses you may be interested in: Guerrilla ASP.NET 15 March 2004, in Boston, MA 17 May 2004 in Torrance, CA 7 June 2004, London, UK http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorŪ http://www.develop.com ASP.NET courses you may be interested in: Guerrilla ASP.NET 15 March 2004, in Boston, MA 17 May 2004 in Torrance, CA 7 June 2004, London, UK http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com