473,653 Members | 3,000 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1203
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
2363
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 (intermediate language and so on). Is there any page on internet, which makes me clear? Thanx
1
2496
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 the W98SE machine via a TCP/IP network. This directory holds Foo.exe, and I want to run the program on the W98SE machine by clicking on Foo.exe. I *am* able to run a C# console application without problem from the shared directory. So I presume...
4
5739
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 and giving the appropriate machine where the service runs.. How shud I got about doing the same thing if the client is written in C#.. I tried using Remoting and ServiceController, but all in vein... Firstly I wud like to know if it is possible to...
3
2198
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 started). I also created an .aspx file to do testing The .aspx file opens fine in other directory from IE. As long as I put it in the application's directory, set a virtual directory trying to open it, it also gives me the following error. I don't...
3
1384
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 Account\Webroot2\default.aspx webserver Account\Somefile.aspx(or .txt) In the example above I want to access the file Somefile.aspx from both of the websites(Webroot1 and Webroot2). This file could be a footer/ terms of
3
4749
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. The app fails with the following error: Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your...
1
1123
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 assembly built for the 1.1 framework within my web app that uses the 2.0 framework, is there any performance penalty incurred here? In other words, am I creating some sort of "cross boundary" communication that has to occur between the 2.0 framework...
5
13990
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 language) dll. 2. Write a web page in ASP.NET. 3. Put the dll from 1 into the virtual directory that 2 lives in (the root).
1
1734
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 running the program from a network drive, the program will try to access the registry of the network machine. Here is the code snippet: RegistryKey rk =...
5
1329
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 set the user policy the same as the machine policy, but it fails to allow the app to run in Full Trust. Do I need to sign the exe in a certain way? I can't find an answer out there. Here is my AssemblyInfo.vb file... Imports System.Reflection...
0
8370
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8283
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8811
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8470
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7302
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6160
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5620
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.