managed to unmanaged code conversion

6 отговора 205 прегледа
#1

managed to unmanaged code conversion

Зная, че има такъв tool, но не го откривам в студиото.

Някой да помогне?

Отговор
в отговор на xyz #2

Re: managed to unmanaged code conversion

Bravo! I az ne moga da go otkria, ama pone znam, che niama:)

Отговор
в отговор на Ebektor #3

Re: managed to unmanaged code conversion

Е браво!

Може и аз да съм в грешка, но като ходих на DevDays там хората говореха , че има и дори мисля, че показаха нещо такова. Но тогава още не се занимавах и демонстрацията може само е минала пред очите ми без да осъзная напълно. Възможно е да е ставало дума и за друго... Затова и питам.

Пак казвам, че може да греша, но все пак силно се надявам да грешиш ти.

Отговор
в отговор на xyz #4

Re: managed to unmanaged code conversion

ngen.exe

Отговор
в отговор на rr #5

Re: managed to unmanaged code conversion

Ха! Чекай малко! Май нещо бъркаш вилаета?
И защо си мислиш, че кода дето прави ngen.exe е unmanaged?
Той просто прави от IL код -> x86 код за да не се губи време за JIT-ване по време на изпълнение.
RTFM както се казва...

---
Не е важно да си добър, важното е да си ман-и-як!
Отговор
в отговор на ess #6

Re: managed to unmanaged code conversion

A spored tebe kakvo e unmanaged kod?

Отговор
в отговор на Minuva4 #7

Re: managed to unmanaged code conversion

RTFM:
managed code
Code that is executed by the common language runtime environment rather than directly by the operating system. Managed code applications gain common language runtime services such as automatic garbage collection, runtime type checking and security support, and so on. These services provide uniform platform- and language-independent behavior of managed-code applications.

unmanaged code
Code that is executed directly by the operating system, outside the common language runtime environment. Unmanaged code must provide its own garbage collection, type checking, security support, and so on, unlike managed code, which receives these services from the common language runtime.

Native Image Generator (Ngen.exe)
The Native Image Generator creates a native image from a managed assembly and installs it into the native image cache on the local computer. The native image cache is a reserved area of the global assembly cache. Once you create a native image for an assembly, the runtime automatically uses that native image each time it runs the assembly. You do not have to perform any additional procedures to cause the runtime to use a native image. Running Ngen.exe on an assembly allows the assembly to load and execute faster, because it restores code and data structures from the native image cache rather than generating them dynamically.

---
Не е важно да си добър, важното е да си ман-и-як!
Отговор