xsharp.eu • Native images
Page 1 of 1

Native images

Posted: Fri Oct 06, 2017 4:05 am
by wriedmann
Hi Robert,

when installing the X# compiler, afterwards it works for a while "generating native images".

Is this something we could use for our own software also?
I'm using XIDE for all of my X# programming.

Thank you very much!

Wolfgang

Native images

Posted: Fri Oct 06, 2017 5:38 am
by robert
Wolfgang,

Yes you can use that too.
We are calling ngen.exe to do the work.
If you look in the folder c:Program Files (x86)XSharpUninst you will see 2 cmd files: instngen.cmd and uninstngen.cmd that we use to generate and remove the precompiled assemblies. These cmd files are created and executed by the (un)installer.

Robert

Native images

Posted: Fri Oct 06, 2017 6:12 am
by wriedmann
Hi Robert,

thank you very much!

I have looked into the cmd files, and a Google search gave me a few very interesting articles about ngen.exe:

To NGen or Not to NGen?

and unfortunately I was not able to find an english version of this very interesting one:

Die Leistungsvorteile durch NGen

It should be inside this chm file (MSDN magazine May 2006):

MSDN Magazine May 2006

but I have added a PDF version of it here:
CLR_Inside_Out_NGEN.pdf
(413.26 KiB) Downloaded 53 times
Wolfgang