NGen

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JMMB

    #1

    NGen

    Just a confirmation.
    NGen generates native code when i install the windows application on the
    client or when I run it for the first time?
    thanks,


  • Benny Mathew

    #2
    Re: NGen

    Actually neither, you have to manually run the ngen tool, or do it
    explicitly in your deployment setup

    Cheers
    Benny

    "JMMB" <mbarbieri@bf.c om.br> wrote in message
    news:Ovbl0$KcDH A.3044@TK2MSFTN GP11.phx.gbl...[color=blue]
    > Just a confirmation.
    > NGen generates native code when i install the windows application on the
    > client or when I run it for the first time?
    > thanks,
    >
    >[/color]


    Comment

    • NULL

      #3
      Re: NGen

      On Mon, 1 Sep 2003 23:59:42 +0530, "Benny Mathew"
      <benny_k_mathew @yahoo.com> wrote:
      [color=blue]
      >Actually neither, you have to manually run the ngen tool, or do it
      >explicitly in your deployment setup[/color]

      Correct...

      NGen has to be invoked manually on your assembly. When you do so
      (ngen.exe myAssembly.exe) you can consider this action as running a
      full JIT compilation (only JIT here means "now") on that assembly and
      giving the result (native code).

      However... It is advisable not to distribute assemblies that have
      been ngen'ed on _your_ computer, since ngen will apply optimizations
      for the computer it is currently running on... Unless you can ngen an
      assembly to the target platform, do not ngen assemlbies that will be
      distributed :)

      --
      NULL
      [color=blue]
      >
      >"JMMB" <mbarbieri@bf.c om.br> wrote in message
      >news:Ovbl0$KcD HA.3044@TK2MSFT NGP11.phx.gbl.. .[color=green]
      >> Just a confirmation.
      >> NGen generates native code when i install the windows application on the
      >> client or when I run it for the first time?
      >> thanks,
      >>
      >>[/color]
      >[/color]

      Comment

      Working...