[Mono-dev] gmcs and The Future
russell.kay at realtimeworlds.com
russell.kay at realtimeworlds.com
Wed Feb 4 11:00:42 EST 2009
I just want the compiler to inline the functions in IL in a similar way
that a C++ compiler would do it, I know that the "correct" way is for
the JIT to do this, but this has other semantic problems that need to be
overcome. In the short term however having the ability to do this easily
through the compiler would be a boon.
So I'm not expecting the C# compiler to output anything other than IL
but just eliminate the calling overhead and not relying on the JIT to do
the inlining.
Russell
-----Original Message-----
From: Mark Probst [mailto:mark.probst at gmail.com]
Sent: 04 February 2009 15:49
To: Russell Kay
Cc: scott at ssblack.co.nz; mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] gmcs and The Future
On Wed, Feb 4, 2009 at 3:35 PM, <russell.kay at realtimeworlds.com> wrote:
> Could we please get a __forceinline for the compiler allowing us to
make
> decisions at compile time to help us with optimisation.
>
> I know that the long term and "correct" answer is to put this sort of
> thing in the Jit but in the short term can we please be treated like
> grownups and get some way of telling the compiler that this property
or
> method really really should be inlined.
I'm not sure how you expect this to work. Inlining is the
responsibility of the JIT and there is no way for GMCS to force the
JIT to inline something without a change in the JIT.
Mark
--
Mark Probst
http://www.complang.tuwien.ac.at/schani/
http://www.flickr.com/photos/schani/
http://schani.wordpress.com/
____________________________________________________________________
This email has been scanned by the MessageLabs Email Security System
____________________________________________________________________
DISCLAIMER
This message and any attachments contain privileged and confidential information intended for the use of the addressee named above. If you are not the intended recipient of this message, you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. Please note that we cannot guarantee that this message or any attachment is virus free or that it has not been intercepted and amended. The views of the author may not necessarily reflect those of Realtime Worlds Ltd.
Realtime Worlds Ltd is registered in Scotland, number 225628. Registered Office: 152 West Marketgait, Dundee, DD1 1NJ.
More information about the Mono-devel-list
mailing list