32-bit

How do I tell if my application is running as a 32-bit or 64-bit application?

≡放荡痞女 提交于 2019-11-27 01:05:45
How do I tell if my application (compiled in Visual Studio 2008 as Any CPU ) is running as a 32-bit or 64-bit application? Perica Zivkovic if (IntPtr.Size == 8) { // 64 bit machine } else if (IntPtr.Size == 4) { // 32 bit machine } Sam If you're using .NET 4.0, it's a one-liner for the current process: Environment.Is64BitProcess Reference: Environment.Is64BitProcess Property (MSDN) I found this code from Martijn Boven that does the trick: public static bool Is64BitMode() { return System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)) == 8; } Scott Ge This code sample from Microsoft All

android-sdks/build-tools/17.0.0/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

孤者浪人 提交于 2019-11-27 00:50:14
I just installed eclipse, the android sdk and jdk on a fresh installation for 64 bit fedora 14 , but by the time i create a new project i am getting the following error in the console: android-sdks/build-tools/17.0.0/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory i am using a 64bit machine and i need to install some 32bit drivers, so i am trying to install: sudo apt-get install ia32-libs Reading Package Lists... Done Building Dependency Tree... Done E: Couldn't find package ia32-libs Anyone help me how to resolve 64bit fedora 14

Installing Oracle 32-bit Client on Windows Server Already Running 64-bit Oracle Database Server

送分小仙女□ 提交于 2019-11-27 00:48:52
问题 I have 64-bit Oracle Database Server (11.2.0.3) installed on Windows 2008 R2, and naturally, it automatically installs the 64-bit client. I have to install an application onto this server that is 32-bit and requires the 32-bit Oracle client. (Don't Ask - I can't install the 64-bit version of this app, it won't work with the 64-bit client, and I can't install it on another server.) Now i have tried installing the 32-bit Client into a different physical folder and selected a different value for

How to Compile 32-bit Apps on 64-bit Ubuntu?

懵懂的女人 提交于 2019-11-27 00:41:50
问题 I'm trying to compile a 32-bit C application on Ubuntu Server 12.04 LTS 64-bit using gcc 4.8. I'm getting linker error messages about incompatible libraries and skipping -lgcc . What do I need to do to get 32 bit apps compiled and linked? 回答1: Ubuntu 16.04 sudo apt-get install gcc-multilib For some reason, on Ubuntu 17.04, I also needed to install the version specific one: sudo apt-get install gcc-6-multilib Then a minimal hello world: main.c #include <stdio.h> int main(void) { puts("hello

Processor, OS : 32bit, 64 bit

扶醉桌前 提交于 2019-11-26 22:19:20
问题 I am new to programming and come from a non-CS background (no formal degree). I mostly program winforms using C#. I am confused about 32 bit and 64 bit.... I mean, have heard about 32 bit OS, 32 bit processor and based on which a program can have maximum memory. How it affects the speed of a program. There are lot more questions which keep coming to mind. I tried to go through some Computer Organization and Architecture books. But, either I am too dumb to understand what is written in there

Adding 64 bit numbers using 32 bit arithmetic

情到浓时终转凉″ 提交于 2019-11-26 19:54:25
问题 How do we add two 64 bit numbers using 32 bit arithmetic?? 回答1: Add the least significant bytes first, keep the carry. Add the most significant bytes considering the carry from LSBs: ; x86 assembly, Intel syntax ; adds ecx:ebx to edx:eax add eax, ebx adc edx, ecx 回答2: Consider how you add two 2-digit numbers using 1-digit arithmetic. 42 +39 --- First you add the right column. (The "ones" or "units"). 2+9 is 11. 11 "overflowed" your 1 digit arithmetic, so you have to "carry" the 10. 1 42 +39 -

How do I run a VBScript in 32-bit mode on a 64-bit machine?

拥有回忆 提交于 2019-11-26 19:42:33
I have a text file that ends with .vbs that I have written the following in: Set Conn = CreateObject("ADODB.Connection") Conn.Provider = "Microsoft.ACE.OLEDB.12.0" Conn.Properties("Data Source") = "C:\dummy.accdb" Conn.Properties("Jet OLEDB:Database Password") = "pass" Conn.Open Conn.Close Set Conn = Nothing When I execute this on a Windows 32-bit machine it runs and ends without any notion (expected). When I execute this on a Windows 64-bit machine it gets the error Provider cannot be found. It may not be properly installed. But it is installed. I think the root of the problem is that the

android-sdks/build-tools/17.0.0/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

十年热恋 提交于 2019-11-26 17:27:56
问题 I just installed eclipse, the android sdk and jdk on a fresh installation for 64 bit fedora 14 , but by the time i create a new project i am getting the following error in the console: android-sdks/build-tools/17.0.0/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory i am using a 64bit machine and i need to install some 32bit drivers, so i am trying to install: sudo apt-get install ia32-libs Reading Package Lists... Done Building

Memory alignment on a 32-bit Intel processor

孤者浪人 提交于 2019-11-26 16:17:06
问题 Intel's 32-bit processors such as Pentium have 64-bit wide data bus and therefore fetch 8 bytes per access. Based on this, I'm assuming that the physical addresses that these processors emit on the address bus are always multiples of 8. Firstly, is this conclusion correct? Secondly, if it is correct, then one should align data structure members on an 8 byte boundary. But I've seen people using a 4-byte alignment instead on these processors. How can they be justified in doing so? 回答1: The

How to run 32-bit Java on Mac OSX 10.7 Lion

不问归期 提交于 2019-11-26 15:38:37
问题 From my experience with Windows 7 (64-bit) and Java, a 32-bit JRE uses less memory and runs significantly faster than a 64-bit JRE (provided you don't need or benefit from having a lot of memory). I imagine the same thing is true for Mac OSX (and other platforms) as well. I am currently running OSX Lion (v10.7), and I have installed the standard Java app. Under Java Preferences, I see "Java SE 6" from "Apple Inc." for both CPU-types "32-bit" and "64-bit" version "1.6.0_26-b03-383". I have