473,395 Members | 1,343 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,395 software developers and data experts.

running an assembly on a non È86 machine

Just curious, I'm reading Richter's book an it says that:

"When the compiler/linker creates an executable assembly, the following
6-byte x86 stub

function is emitted into the PE file's .text section:

JMP _CorExeMain /*_CorDllMain for a DLL*/"

and then below :

"Note that the 6-byte stub function is specifically for x86 machines. This
stub doesn't work properly if the CLR

is ported to run on other CPU architectures."

Does it mean that an assembly, compiled under win2000 for example, is not
able to run on another type of processor without recompiling it?
Jul 21 '05 #1
1 1184
Does it mean that an assembly, compiled under win2000 for example, is not
able to run on another type of processor without recompiling it?


No. The assembly loader on that other platform would simply ignore the
stub and look directly for the managed entry point. The stub is only
there to support loading the CLR on older versions of Windows without
having to modify the loader on those versions.


Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #2

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

Similar topics

5
by: Marian | last post by:
Hi, I am totaly novice in .NET and I am studying a book about this. There was mentioned "assembly". I did not understand, how function does it has . I would like to know the exact run of code...
1
by: Fred Mellender | last post by:
I wish to run a C# Windows Forms program on a Windows 98SE machine, from a directory that is owned by a Windows XP machine. The directory is shared via directory sharing from the XP machine to...
4
by: Jasleen | last post by:
I have written one Widows Service in ATL, having a ATL component running. Now it is very easy to create the VC client by calling CoCreateINstanceEx to create the component running in the service...
3
by: jliusolar | last post by:
Hi I am trying to figure out why an application get this error when I am trying to open the application's asmx file from localhost. I don't have indexing service running(it set as manual and not...
3
by: CES | last post by:
All, I was wondering is their a way of accessing/running .aspx pages that live above the web root. An example would webserver Account\Webroot1\default.aspx webserver...
3
by: ctk70 | last post by:
I'm trying to run a ASP.NET 1.1 app on a Windows 2003 server. The app runs fine on my local workstation (Windows 2000 SP4). Both the server and workstation have Visual Studio .NET 2003 installed. ...
1
by: Steve Franks | last post by:
I have a web site built using ASP.NET 2.0 and Visual Studio 2005. If also have a C# assembly that was compiled using VS 2003, so this assembly runs under the 1.1 framework. If I use this...
5
by: steve_barker333 | last post by:
Hi guys! I found a great article a while ago about how to write client side C#. Sadly, I can't find it again now, but here's the jist of what I learnt to do: 1. Write a C# (or any .NET...
1
by: utpal | last post by:
Hi, My CSharp program, when I run from the local drive it can create/modify registry. However running the program from a network drive, gives RegistryPremission error. I don't belive that just by...
5
by: Shawn | last post by:
I have a .net 1.1 app that runs from a network share. I signed it and can add a machine policy to my computers and it runs fine, but I really need to use a user policy to allow the app to run. I...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.