Home All Groups Group Topic Archive Search About
Author
18 Mar 2005 10:56 PM
Timothy V
Hi,
I have a question regarding the .NET Framework 2.0 and x64. I realise these
are still in beta, but I hope someone can help me.

If i had dotnet2.0x64 installed on winxpx64. Does an application compiled on
a winxpx86 (using dotnet2.0x86) require the x86 or x64 edition of dotnet2.0?

I'll try to rephrase that a little better just in case you didn't get it.
Does a 32bit .net application require the 32bit .net framework edition, or
can it use the 64bit .net framework edition?

Thanks guys,

Tim.

Author
18 Mar 2005 11:04 PM
VJ
would be interesting to know... more like going from 16 to 32 bit in middle
to late 90s... i am sure there is some compatablity involved... like it was
for 16 to 32... , so I am hoping 32-bit can still runt with 64bit edition...

VJ


Show quote
"Timothy V" <tri***@msn.com> wrote in message
news:uKL372ALFHA.1156@TK2MSFTNGP09.phx.gbl...
> Hi,
> I have a question regarding the .NET Framework 2.0 and x64. I realise
> these are still in beta, but I hope someone can help me.
>
> If i had dotnet2.0x64 installed on winxpx64. Does an application compiled
> on a winxpx86 (using dotnet2.0x86) require the x86 or x64 edition of
> dotnet2.0?
>
> I'll try to rephrase that a little better just in case you didn't get it.
> Does a 32bit .net application require the 32bit .net framework edition, or
> can it use the 64bit .net framework edition?
>
> Thanks guys,
>
> Tim.
>
Author
18 Mar 2005 11:14 PM
Brock Allen
Well, since managed code (IL) is JIT compiled, why would your code be specific
to any platform? Wasn't this the whole point?

Now, of course, if you make unmanaged calls that assume a platform (x86 or
otherwise) then you're stuck with that platform. And thus the new /platform
compiler switch. By default the value is "anycpu" which means you don't make
any platform specific assumptions in your code.

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quote
> Hi,
> I have a question regarding the .NET Framework 2.0 and x64. I realise
> these
> are still in beta, but I hope someone can help me.
> If i had dotnet2.0x64 installed on winxpx64. Does an application
> compiled on a winxpx86 (using dotnet2.0x86) require the x86 or x64
> edition of dotnet2.0?
>
> I'll try to rephrase that a little better just in case you didn't get
> it. Does a 32bit .net application require the 32bit .net framework
> edition, or can it use the 64bit .net framework edition?
>
> Thanks guys,
>
> Tim.
>
Author
18 Mar 2005 11:32 PM
Timothy V
Well, the way i see it is that if an x86 compiled .net application (only
managed calls) were to be able to use the x64 edition of the .net framework,
wouldn't the application then be running in both x86 and x64 mode?

The application being x86 and the managed calls being x64, there could
possibly be a performance increase for the x86 application since the calls
to .net are now x64.

I don't have winxpx64 cpp installed, so i'm unable to test the question i
have asked. So i thought someone in the newsgroups may have asked
themseleves this question and had tested it.

Show quote
"Brock Allen" <bal***@develop.com.i_hate_spam_too> wrote in message
news:39319632467664522003120@msnews.microsoft.com...
> Well, since managed code (IL) is JIT compiled, why would your code be
> specific to any platform? Wasn't this the whole point?
>
> Now, of course, if you make unmanaged calls that assume a platform (x86 or
> otherwise) then you're stuck with that platform. And thus the new
> /platform compiler switch. By default the value is "anycpu" which means
> you don't make any platform specific assumptions in your code.
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
>> Hi,
>> I have a question regarding the .NET Framework 2.0 and x64. I realise
>> these
>> are still in beta, but I hope someone can help me.
>> If i had dotnet2.0x64 installed on winxpx64. Does an application
>> compiled on a winxpx86 (using dotnet2.0x86) require the x86 or x64
>> edition of dotnet2.0?
>>
>> I'll try to rephrase that a little better just in case you didn't get
>> it. Does a 32bit .net application require the 32bit .net framework
>> edition, or can it use the 64bit .net framework edition?
>>
>> Thanks guys,
>>
>> Tim.
>>
>
>
>
Author
19 Mar 2005 12:02 AM
Brock Allen
> Well, the way i see it is that if an x86 compiled .net application
> (only managed calls) were to be able to use the x64 edition of the
> .net framework, wouldn't the application then be running in both x86
> and x64 mode?

Well, that mode is called "anycpu" :) But don't think of it being x86 compiled...
It's compiled to IL. IL is platform independant and when it hits a IA64 CLR,
then it'll be IA64 JIT compiled. So, I think we're on the same page here.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Author
19 Mar 2005 12:08 AM
Phil Wilson
I think you'll be able to say when you install it (or build it). You could
easily do things that would be specific to a 32-bit processor (int instead
of IntPtr in p/invoke) so you'd need to make sure you've written agnostic
code. So there'll be something like AnyCpu, and something else to say 32 or
64-bit specific.
--
Phil Wilson [MVP Windows Installer]
----
Show quote
"Timothy V" <tri***@msn.com> wrote in message
news:uKL372ALFHA.1156@TK2MSFTNGP09.phx.gbl...
> Hi,
> I have a question regarding the .NET Framework 2.0 and x64. I realise
these
> are still in beta, but I hope someone can help me.
>
> If i had dotnet2.0x64 installed on winxpx64. Does an application compiled
on
> a winxpx86 (using dotnet2.0x86) require the x86 or x64 edition of
dotnet2.0?
>
> I'll try to rephrase that a little better just in case you didn't get it.
> Does a 32bit .net application require the 32bit .net framework edition, or
> can it use the 64bit .net framework edition?
>
> Thanks guys,
>
> Tim.
>
>
Author
19 Mar 2005 9:45 AM
Bruno Jouhier [MVP]
"Timothy V" <tri***@msn.com> a écrit dans le message de news:
uKL372ALFHA.1***@TK2MSFTNGP09.phx.gbl...
> Hi,
> I have a question regarding the .NET Framework 2.0 and x64. I realise
> these are still in beta, but I hope someone can help me.
>
> If i had dotnet2.0x64 installed on winxpx64. Does an application compiled
> on a winxpx86 (using dotnet2.0x86) require the x86 or x64 edition of
> dotnet2.0?
>
> I'll try to rephrase that a little better just in case you didn't get it.
> Does a 32bit .net application require the 32bit .net framework edition, or
> can it use the 64bit .net framework edition?

VS 2005 has a new setting that lets you specify whether your assembly will
target x86, x64 or both cpus. The default mode is to target both cpus. With
this setting, the same assembly can run either on x86 or x64, and the JIT
takes care of the differences.

Marking the assembly as x86 or x64 is useful if your assembly relies on
unmanaged DLLs that don't exist in both flavors.

Bruno.

Show quote
>
> Thanks guys,
>
> Tim.
>
Author
21 Mar 2005 11:39 AM
Thomas Scheidegger [MVP]
> question regarding the .NET Framework 2.0 and x64


http://msdn.microsoft.com/chats/transcripts/windows/windows_110904b.aspx



--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/

AddThis Social Bookmark Button