32-bit

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

拜拜、爱过 提交于 2019-11-28 05:08:51
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 the Oracle Base and Software Location when installing and it installed just fine. And it put the BIN

How to read 4GB file on 32bit system

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 05:03:21
问题 In my case I have different files lets assume that I have >4GB file with data. I want to read that file line by line and process each line. One of my restrictions is that soft has to be run on 32bit MS Windows or on 64bit with small amount of RAM (min 4GB). You can also assume that processing of these lines isn't bottleneck. In current solution I read that file by ifstream and copy to some string. Here is snippet how it looks like. std::ifstream file(filename_xml.c_str()); uintmax_t m

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

☆樱花仙子☆ 提交于 2019-11-28 04:53:06
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? 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 world"); return 0; } compiles without warning with: gcc -m32 -ggdb3 -O0 -pedantic-errors -std=c89 \ -Wall

what is the performance impact of using int64_t instead of int32_t on 32-bit systems?

荒凉一梦 提交于 2019-11-28 04:18:16
Our C++ library currently uses time_t for storing time values. I'm beginning to need sub-second precision in some places, so a larger data type will be necessary there anyway. Also, it might be useful to get around the Year-2038 problem in some places. So I'm thinking about completely switching to a single Time class with an underlying int64_t value, to replace the time_t value in all places. Now I'm wondering about the performance impact of such a change when running this code on a 32-bit operating system or 32-bit CPU. IIUC the compiler will generate code to perform 64-bit arithmetic using

Converting 32-bit binary string with Integer.parseInt fails

拈花ヽ惹草 提交于 2019-11-28 01:50:32
Why does this part of code fail: Integer.parseInt("11000000000000000000000000000000",2); Exception in thread "main" java.lang.NumberFormatException: For input string: "11000000000000000000000000000000" As far as I understand Integer is a 32 bit value. The number of zeros and ones in the upper code is 32. If there are 31 the code works. Why is that so? millimoose Your code fails because it tries to parse a number that would require 33 bits to store as a signed integer. A signed int is a 32 bit value in two's complement representation, where the first bit will indicate the sign of the number,

Using 32bit COM addin under MS Office 64 bit

二次信任 提交于 2019-11-28 01:42:24
问题 I am struggling to apply an existing 32bit COM addin to 64bit Microsoft Word 2010. To make the addin visible to Word, I have used the dllsurrogate-method, as it described here. The problem is that now addin caused some strange exception when tries to add its toolbar and menu to office's. I cannot figure out, what it is, it seems, that the command bar reference became not valid in unpredicable moments. Can anyone explain this? Note, that everething is fine when I use the same addin under 32bit

Class not registered Error

人走茶凉 提交于 2019-11-27 21:26:12
Running an application from Visual Studio 2012 on 64-bit computers, displays the following error message: Retrieving the COM class factory for component with CLSID {F2D4F4E5-EEA1-46FF-A83B-A270C92DAE4B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) I am using Inventor packandgo dll library in visualstudio. Anyone know what is the error? Waheed My problem and the solution I have a 32 bit third party dll which I have installed in 2008 R2 machine which is 64 bit. I have a wcf service created in .net 4.5 framework which

memcpy performance differences between 32 and 64 bit processes

心不动则不痛 提交于 2019-11-27 21:00:47
问题 We have Core2 machines (Dell T5400) with XP64. We observe that when running 32-bit processes, the performance of memcpy is on the order of 1.2GByte/s; however memcpy in a 64-bit process achieves about 2.2GByte/s (or 2.4GByte/s with the Intel compiler CRT's memcpy). While the initial reaction might be to just explain this away as due to the wider registers available in 64-bit code, we observe that our own memcpy-like SSE assembly code (which should be using 128-bit wide load-stores regardless

Differences between 32 and 64-bit .NET (4) applications

你离开我真会死。 提交于 2019-11-27 19:32:18
What are the differences between 32 and 64-bit .NET (4) applications? Often 32-bit applications have problems running on 64-bit machines and conversely. I know I can declare an integer as int32 and int64 (certainly int64 on 32-bit systems make problems). Are there other differences between programming an 32 OR 64-bit or a both 32 AND 64-bit compatible application? Chris Schmich Some differences: 32-bit and 64-bit applications can only load DLLs of the same bitness. This can be an issue for managed projects if your platform target is "Any CPU" and you reference or P/Invoke 32-bit native DLLs.

fast way to check if an array of chars is zero [duplicate]

假装没事ソ 提交于 2019-11-27 19:26:24
This question already has an answer here: Faster approach to checking for an all-zero buffer in C? 20 answers I have an array of bytes, in memory. What's the fastest way to see if all the bytes in the array are zero? Nowadays, short of using SIMD extensions (such as SSE on x86 processors), you might as well iterate over the array and compare each value to 0. In the distant past , performing a comparison and conditional branch for each element in the array (in addition to the loop branch itself) would have been deemed expensive and, depending on how often (or early) you could expect a non-zero