473,414 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

NGEN native generation creating differing binaries on 2 different machines?

Hi All,

* I have 2 dev machines, one is running WinXP Pro and one is running
Win2K Server. Each has Visual Studio .NET 7.0 installed (the .NET 1.0
dev tools.)
* I have a .NET .dll (let's call it a.dll) which I can run NGEN on,
giving me the native image, (let's call it a_native.dll.)
* Using the same version of NGEN and the same a.dll, I create
a_native.dll on both of these dev boxes.
* I do a binary diff on the 2 a_native.dll files and notice that
they are exactly the same size, but there are numerous differences
within the files.

Does anyone have an explanation for why this is happening? I don't
think it's an O/S issue because I think I ran this test on two XP
boxes as well, and got the same curious result.

Thanks in advance,
Will Smith
Jul 21 '05 #1
1 1711
Read the documentation on Ngen again in the MSDN.

When you use Ngen.exe to create a native image of an assembly, the output
depends upon the command line options that you specify and certain settings
on your computer. These settings include the following:
a.. The version of the .NET Framework.
b.. The CPU type.
c.. The version of the operating system.
d.. The exact identity of the assembly (recompilation changes identity).
e.. The exact identity of all assemblies that the assembly references
(recompilation changes identity).
f.. Security factors.
You are using different operating system thus you will get different images.
(you didn't mention the CPUs which might explain the differences on the two
XP machines)

Hope that helps

Rollasoc
"Will" <co******@hotmail.com> wrote in message
news:81**************************@posting.google.c om...
Hi All,

* I have 2 dev machines, one is running WinXP Pro and one is running
Win2K Server. Each has Visual Studio .NET 7.0 installed (the .NET 1.0
dev tools.)
* I have a .NET .dll (let's call it a.dll) which I can run NGEN on,
giving me the native image, (let's call it a_native.dll.)
* Using the same version of NGEN and the same a.dll, I create
a_native.dll on both of these dev boxes.
* I do a binary diff on the 2 a_native.dll files and notice that
they are exactly the same size, but there are numerous differences
within the files.

Does anyone have an explanation for why this is happening? I don't
think it's an O/S issue because I think I ran this test on two XP
boxes as well, and got the same curious result.

Thanks in advance,
Will Smith

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: William Reyes | last post by:
I have a question regarding the use of ngen.exe and dedployment. I want to make sure I understand this correctly. If I create an app that has an .exe as well as a couple of .dll's. I can create...
3
by: William Reyes | last post by:
I have a question regarding the use of ngen.exe and dedployment. I want to make sure I understand this correctly. If I create an app that has an .exe as well as a couple of .dll's. I can create...
3
by: William Reyes | last post by:
I have a question regarding the use of ngen.exe and dedployment. I want to make sure I understand this correctly. If I create an app that has an .exe as well as a couple of .dll's. I can create...
1
by: Will | last post by:
Hi All, * I have 2 dev machines, one is running WinXP Pro and one is running Win2K Server. Each has Visual Studio .NET 7.0 installed (the .NET 1.0 dev tools.) * I have a .NET .dll (let's call...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.