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

.Net and 64-bit

Is .Net aware of 32-bit/64-bit processor/Windows version at all?

How to check if a system 32-bit processor or 64-bit Windows? I looked at
"Control Panel/System" icon of a 2003 Server version, but it didn't show
anything about these?
Jul 26 '08 #1
5 1278
micro wrote:
Is .Net aware of 32-bit/64-bit processor/Windows version at all?
MSIL is not but CLR is.
How to check if a system 32-bit processor or 64-bit Windows? I looked at
"Control Panel/System" icon of a 2003 Server version, but it didn't show
anything about these?
You could check if IntPtr.Size returns 4 or 8.

Arne
Jul 26 '08 #2
..NET code compiles to byte code, so it does not have to be aware of a
certain type of CPU if you are not natively generating (ngen.exe). The
framework is, at the core, set up for a particular environment (32 or 64),
but this means Framework 2.0 as 3.0 and 3.5 sit on top of it.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

********************************************
| Think outside the box! |
********************************************
"micro" <mi*********@yahoo.comwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
Is .Net aware of 32-bit/64-bit processor/Windows version at all?

How to check if a system 32-bit processor or 64-bit Windows? I looked at
"Control Panel/System" icon of a 2003 Server version, but it didn't show
anything about these?

Jul 26 '08 #3
micro wrote:
Is .Net aware of 32-bit/64-bit processor/Windows version at all?
Yes. The JIT compiler will compile the code for the processor that it
runs on, so on a 64 bit system you get 64 bit native code.
How to check if a system 32-bit processor or 64-bit Windows? I looked at
"Control Panel/System" icon of a 2003 Server version, but it didn't show
anything about these?
If it's a 32 bit system, it doesn't say anything about it, but if it's a
64 bit system, it says for example:

Microsoft Windows Server 2003
Standard x64 Edition
Service Pack 2

--
Göran Andersson
_____
http://www.guffa.com
Jul 27 '08 #4
Start button, right click Computer, Properties. It tells you if it is Win32
or Win64.

Jul 27 '08 #5
Peter Morris wrote:
Start button, right click Computer, Properties. It tells you if it is
Win32 or Win64.
Well, not exactly. The version of Windows that the OP has doesn't tell
you if it's a 32 bit system, but it tells you if it's a 64 bit system.
So if it doesn't specify either, it's a 32 bit system.

--
Göran Andersson
_____
http://www.guffa.com
Jul 27 '08 #6

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

Similar topics

0
by: Marc Poinot | last post by:
Did anybody use numarray on a 64 bits platform ? (e.g. SGI/Irix) The package works on our 64 bits platforms... using 32 bits mode, but not using 64 mode. Big crash in _ufunc... Is there a flag to...
1
by: Hugo | last post by:
I have a dual boot machine, runs Win XP pro and Win XP Pro 64, XP boots from C and XP 64 boots from D. They both have VS 2005 Beta 2 installed. I have a webapp developed in Win XP (32) which...
3
by: Odd Bjørn Andersen | last post by:
I was asked to install db2 udb workgroup edition (version 7.2) 64-bits on AIX. But I cannot find that we have a CD with that software. Only Enterprise Edition. Is it correct that you have to...
56
by: Dave Vandervies | last post by:
I just fixed a bug that some of the correctness pedants around here may find useful as ammunition. The problem was that some code would, very occasionally, die with a segmentation violation...
0
by: Hugo | last post by:
I have a dual boot machine, runs Win XP pro and Win XP Pro 64, Win XP boots from C and Win XP 64 boot from D. They both have VS 2005 Beta 2 installed. I have a webapp developed in Win XP (32)...
3
by: some one | last post by:
I have kind of wired problem, I using httpwebrequest to post form data to server , in the GetResponse stage a WebException occurred, after tracing the actual error that occurs on the server, I...
1
by: mel_apiso | last post by:
Hi, we have an AIX 5.3 OS, and we purchased DB2 UDB version 8 Workgroup Edition. We want to install 64 bits version, but the source CD's that we have say: WORKGROUP SERVER EDITION Version...
13
by: Mary Lei | last post by:
Does anyone know the link to obtain the tarball for db2 8.1 for solaris running on AMD 64 bit ? This is the entire db2 installation on a new system that does not have db2. Thanks.
10
by: krunalb | last post by:
Hi, I am trying to shift unsigned long long value by 64 bits and this is what i get #include <stdio.h> int main() { unsigned short shiftby= 64;
1
by: =?Utf-8?B?UGF1bCBQaGlsbGlwcw==?= | last post by:
I have read many things about this but I haven't got a clear vision on what to do if anything about this. I have a system that tries to find holes in my web site. One of the things it has...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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
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...

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.