M
Markus Eßmayr
Hi everybody!
Does anybody of you know a way to compile any .NET assembly to x86 code?
But I don't mean NGen or something like that!!!!
I'd like to get a DLL which has absolutely NO DEPENDENCY to the .NET runtime
anymore!
Running it should not perform any CAS checks, ...
All used types should also get compiled to x86 code in either the same or
other DLLs!
As a result, I'd like to register the resulting DLL (which exposes a .NET
class to COM) using regsrv32.
I know, you now might be thinking: "Is this guy crazy!", but that's ok!
So, let me explain to you, why this question came up!
I'm working on an application which is developed in an unmanaged
environment. This environment allows very RAD and it also is able to consume
COM objects.
But the problem is, that the instanciation of COM objects written in .NET
which we need during application startup slows down the complete application
launch!!!!!!
We already tried NGen'd, strong named and GAC'd components, but it's still
slow.
So we think that loading the whole bunch of .NET files may result in that
big delays - and that creating completely unmanaged modules might help here,
as loading "normal" DLLs is quite fast.
Or has anybody of you another idea, what I coul'd try?
Thanks in advance!
Max
Does anybody of you know a way to compile any .NET assembly to x86 code?
But I don't mean NGen or something like that!!!!
I'd like to get a DLL which has absolutely NO DEPENDENCY to the .NET runtime
anymore!
Running it should not perform any CAS checks, ...
All used types should also get compiled to x86 code in either the same or
other DLLs!
As a result, I'd like to register the resulting DLL (which exposes a .NET
class to COM) using regsrv32.
I know, you now might be thinking: "Is this guy crazy!", but that's ok!
So, let me explain to you, why this question came up!
I'm working on an application which is developed in an unmanaged
environment. This environment allows very RAD and it also is able to consume
COM objects.
But the problem is, that the instanciation of COM objects written in .NET
which we need during application startup slows down the complete application
launch!!!!!!
We already tried NGen'd, strong named and GAC'd components, but it's still
slow.
So we think that loading the whole bunch of .NET files may result in that
big delays - and that creating completely unmanaged modules might help here,
as loading "normal" DLLs is quite fast.
Or has anybody of you another idea, what I coul'd try?
Thanks in advance!
Max