Hi,
 Thanks for such a prompt response. the solution sounds kind of
complicated.
well,actually i just want a function that can allocate memory, like
new that i can call in a C# program.
Isnt there any other way to do it. say as pointed
out by you in the first option- if i want to have a method instead of
another instruction, what would the changes involve. it might be a lot
simpler than this?

Regards
archana

 On Mon, 23 Aug 2004, Jan Kotas wrote:

> 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

Reply via email to