Click here to Skip to main content
15,893,722 members
Home / Discussions / C#
   

C#

 
Question"ANY CPU" compilation - what gives? Pin
harleydk8-Jan-09 20:30
harleydk8-Jan-09 20:30 
AnswerRe: "ANY CPU" compilation - what gives? [modified] Pin
Colin Angus Mackay8-Jan-09 22:27
Colin Angus Mackay8-Jan-09 22:27 
GeneralRe: "ANY CPU" compilation - what gives? Pin
harleydk9-Jan-09 1:02
harleydk9-Jan-09 1:02 
GeneralRe: "ANY CPU" compilation - what gives? Pin
Guffa9-Jan-09 1:19
Guffa9-Jan-09 1:19 
GeneralRe: "ANY CPU" compilation - what gives? Pin
Guffa9-Jan-09 1:18
Guffa9-Jan-09 1:18 
GeneralRe: "ANY CPU" compilation - what gives? Pin
Colin Angus Mackay9-Jan-09 1:25
Colin Angus Mackay9-Jan-09 1:25 
GeneralRe: "ANY CPU" compilation - what gives? Pin
Guffa9-Jan-09 5:51
Guffa9-Jan-09 5:51 
AnswerRe: "ANY CPU" compilation - what gives? Pin
Guffa9-Jan-09 1:17
Guffa9-Jan-09 1:17 
The IL code in your assembly isn't specific to any processor at all. Regardless of what CPU target you choose, the IL code could still be used on any processor. The CPU target is simply information that the code should only be allowed to be used on a specific type of CPU.

You can use the CPU target for example to specify that your assembly only can be used in x86 mode as you are calling methods in an unmanaged x86-dll.

It's the JIT compiler that creates the machine code from the IL code when your assembly is loaded. It can create different code depending on the actual processor that will run the code, so that it will take advantage of the capabilities or that specific processor.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: "ANY CPU" compilation - what gives? Pin
Colin Angus Mackay9-Jan-09 1:30
Colin Angus Mackay9-Jan-09 1:30 
GeneralRe: "ANY CPU" compilation - what gives? Pin
Daniel Grunwald9-Jan-09 1:56
Daniel Grunwald9-Jan-09 1:56 
GeneralRe: "ANY CPU" compilation - what gives? Pin
Luc Pattyn9-Jan-09 3:45
sitebuilderLuc Pattyn9-Jan-09 3:45 
GeneralRe: "ANY CPU" compilation - what gives? Pin
Colin Angus Mackay9-Jan-09 5:39
Colin Angus Mackay9-Jan-09 5:39 
AnswerRe: "ANY CPU" compilation - what gives? Pin
Dave Kreskowiak9-Jan-09 1:58
mveDave Kreskowiak9-Jan-09 1:58 
GeneralRe: "ANY CPU" compilation - what gives? Pin
harleydk11-Jan-09 10:51
harleydk11-Jan-09 10:51 
QuestionPlaying DVD Pin
Identity Undisclosed8-Jan-09 20:15
Identity Undisclosed8-Jan-09 20:15 
AnswerRe: Playing DVD Pin
EliottA9-Jan-09 2:34
EliottA9-Jan-09 2:34 
GeneralRe: Playing DVD Pin
Identity Undisclosed11-Jan-09 21:50
Identity Undisclosed11-Jan-09 21:50 
GeneralRe: Playing DVD Pin
EliottA12-Jan-09 0:59
EliottA12-Jan-09 0:59 
QuestionDeploying a console application (ConsoleApp below) to another machine - I'm confused :( Pin
Tina P8-Jan-09 19:26
Tina P8-Jan-09 19:26 
AnswerRe: Deploying a console application (ConsoleApp below) to another machine - I'm confused :( Pin
PIEBALDconsult8-Jan-09 19:45
mvePIEBALDconsult8-Jan-09 19:45 
AnswerRe: Deploying a console application (ConsoleApp below) to another machine - I'm confused :( Pin
Aman Bhullar8-Jan-09 20:52
Aman Bhullar8-Jan-09 20:52 
AnswerRe: Deploying a console application (ConsoleApp below) to another machine - I'm confused :( Pin
J4amieC8-Jan-09 22:46
J4amieC8-Jan-09 22:46 
Questionhow to change the color of the picture box Pin
prasadbuddhika8-Jan-09 19:26
prasadbuddhika8-Jan-09 19:26 
AnswerRe: how to change the color of the picture box Pin
Jason C Bourne8-Jan-09 20:13
Jason C Bourne8-Jan-09 20:13 
QuestionHow i Lock my Harddisk drive in c#.net Pin
john ramesh john8-Jan-09 18:43
john ramesh john8-Jan-09 18:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.