Native images

This forum is meant for questions and discussions about the X# language and tools
Post Reply
User avatar
wriedmann
Posts: 3765
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Native images

Post 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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
robert
Posts: 4540
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Native images

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
wriedmann
Posts: 3765
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Native images

Post 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 55 times
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Post Reply