> Hello LOST,
>
> L> I need to compile .NET assembly to native code.
>
> What do u mean? Do u want to get pure unmanaged code from managed sources?
> it's impossible
impossible? Actually, I need almost the same code JIT compiler produce,
but stored in separate executable. Why is it impossible?
Michael Nemtsev - 21 Oct 2006 16:30 GMT
Hello LOST,
Such is the .NET architecture.
Executable is only the assembly (in case of EXE file) that has a standard
PE hearder. And that uses unmanaged mscoree.dll to init all work to start
you managed code.
NGEN there helps to avoid compilation - when u call smth u redirected to
the NGEN image not to process of JIT compilation
L> Michael Nemtsev wrote:
L>
>> Hello LOST,
>>
>> L> I need to compile .NET assembly to native code.
>>
>> What do u mean? Do u want to get pure unmanaged code from managed
>> sources? it's impossible
L> impossible? Actually, I need almost the same code JIT compiler
L> produce, but stored in separate executable. Why is it impossible?
L>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
Francois PIETTE - 21 Oct 2006 16:31 GMT
>> L> I need to compile .NET assembly to native code.
>> What do u mean? Do u want to get pure unmanaged code from managed
>> sources?
>> it's impossible
> impossible? Actually, I need almost the same code JIT compiler produce,
> but stored in separate executable. Why is it impossible?
Because this code need the .NET runtime. Actually .NET is another operating
system than the underlaying OS (win32).
If you need native code, you should consider rewriting your application as a
win32 application.

Signature
Francois PIETTE
http://www.overbyte.be
LOST - 22 Oct 2006 10:49 GMT
Indeed, I understand JIT-compiled code requires runtime to execute.
I found one solution. It's Salamander. But it costs about $1200.
Michael Nemtsev - 22 Oct 2006 11:46 GMT
Hello LOST,
L> Indeed, I understand JIT-compiled code requires runtime to execute. I
L> found one solution. It's Salamander. But it costs about $1200.
Salamander is Decompiler - it just takes your managed binary and decomplile
it to the managed source code
There is nothig about "get unmanaged binary from managed source"
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
PS - 22 Oct 2006 14:40 GMT
> Hello LOST,
>
[quoted text clipped - 4 lines]
> decomplile it to the managed source code
> There is nothig about "get unmanaged binary from managed source"
<quote>
Our protector is not an obfuscator, rather it converts the decompilable
Microsoft Intermediate Language code (MSIL or CIL) of your assemblies into
native format while keeping all .NET metadata intact, and thus it provides
the same level of protection as native C/C++ code.
</quote>
It's $1899 by the way. Xenocode also have something called PostBuild
(www.xenocode.com).
PS
> ---
> WBR,
> Michael Nemtsev :: blog: http://spaces.live.com/laflour
>
> "At times one remains faithful to a cause only because its opponents do
> not cease to be insipid." (c) Friedrich Nietzsche