.Net and 64-bit

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • micro

    .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?


  • =?ISO-8859-1?Q?Arne_Vajh=F8j?=

    #2
    Re: .Net and 64-bit

    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

    Comment

    • Cowboy \(Gregory A. Beamer\)

      #3
      Re: .Net and 64-bit

      ..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


      or just read it:


      *************** *************** **************
      | Think outside the box! |
      *************** *************** **************
      "micro" <micro090909@ya hoo.comwrote in message
      news:%23wxX$$07 IHA.400@TK2MSFT NGP05.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?
      >
      >

      Comment

      • =?ISO-8859-1?Q?G=F6ran_Andersson?=

        #4
        Re: .Net and 64-bit

        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
        _____
        Göran Anderssons privata hemsida.

        Comment

        • Peter Morris

          #5
          Re: .Net and 64-bit

          Start button, right click Computer, Properties. It tells you if it is Win32
          or Win64.

          Comment

          • =?ISO-8859-1?Q?G=F6ran_Andersson?=

            #6
            Re: .Net and 64-bit

            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
            _____
            Göran Anderssons privata hemsida.

            Comment

            Working...