32bit-64bit

MSBuild and $(ProgramFiles) issue with 32/64 bits

筅森魡賤 提交于 2019-12-03 07:04:07
I wrote a custom MSBuild task which calls SubWCRev.exe , an executable which (typically) resides in C:\Program Files\TortoiseSVN\bin , whether it's 32 or 64 bits, since TortoiseSVN provides both versions. The problem is, Visual Studio 2010 only has a 32 bit version. So when my colleagues with a 64 bit box try to build using my shiny new task, $(ProgramFiles) resolves to C:\Program Files(x86) and it explodes saying that SubWCRev.exe cannot be found. Because they have the 64 bit version of TortoiseSVN, which lives in C:\Program Files ! Is there a better solution than hardcoding C:\Program Files

Bluetooth in java (J2SE)

大城市里の小女人 提交于 2019-12-03 06:45:20
I am a newbie to bluetooth and this is the thing i want to do , I want to to get the device information that gets connected to the Bluetooth on my pc and write the info in a file. which api should i use and how to implement . I came across bluecove but on a few searches i found that bluecove doesn't work on 64 bit pc's. what should i do now .i want this to work on both 32 bit and 64 bit pcs. Thankx The bluetooth apis recommended in the oracle tutorials are included in the JSR 82 API specification. I think though, that the latest release of the BlueCove (2.1.1)includes the driver for windows 7

When should -m32 option of gcc be used?

浪尽此生 提交于 2019-12-03 06:44:07
问题 I am writing a program which if I compile on a Suse 10 32-bit system without adding the -m32 option and execute it on Suse 10 64-bit, it works fine. In this case, is it not required for me to add the -m32 option? Can we execute programs built on 32-bit systems directly on their 64-bit counterparts without any side-effects? Or are there any updates or changes required? 回答1: There is no problems in running 32 bits executables on 64 bit OS (as long as 32 bit dynamic libraries are present and

Build 32-bit with 64-bit llvm-gcc

好久不见. 提交于 2019-12-03 06:19:45
I have a 64-bit version of llvm-gcc, but I want to be able to build both 32-bit and 64-bit binaries. Is there a flag for this? I tried passing -m32 (which works on the regular gcc), but I get an error message like this: [jay@andesite]$ llvm-gcc -m32 test.c -o test Warning: Generation of 64-bit code for a 32-bit processor requested. Warning: 64-bit processors all have at least SSE2. /tmp/cchzYo9t.s: Assembler messages: /tmp/cchzYo9t.s:8: Error: bad register name `%rbp' /tmp/cchzYo9t.s:9: Error: bad register name `%rsp' ... This is backwards; I want to generate 32-bit code for a 64-bit processor

Eclipse Kepler freezes on 64 bit ubuntu

折月煮酒 提交于 2019-12-03 04:55:59
I just upgraded my Ubuntu to 14.04 a few days ago and in the process switched from 32 to 64 bits. Ever since, Eclipse has gotten really unstable. After having run for a few minutes it will start randomly freezing for longer and longer periods of time, particularly on code completion (already had to disable that), but also on cut/pasting, occasionally on saving, and sometimes for no apparent reason at all. During the freezes it pumps both CPUs to 100%. Sometimes it then comes back as if nothing had happened, sometimes it'll spout errors about being out of memory, timing out or exceeding the GC

Running vbscript from batch file

别等时光非礼了梦想. 提交于 2019-12-03 04:52:13
问题 I just need to write a simple batch file just to run a vbscript. Both the vbscript and the batch file are in the same folder and is in the SysWOW64 directory as the vbscript can only be execute in that directory. Currently my batch file is as follows: @echo off %WINDIR%\SysWOW64\cmd.exe cscript necdaily.vbs But the vbscript wasn't executed and just the command prompt is open. Can anyone tell me how can i execute the vbscript when i run this batch file? Thanks. 回答1: You can use %~dp0 to get

Is it safe to use sys.platform=='win32' check on 64-bit Python?

不打扰是莪最后的温柔 提交于 2019-12-03 04:12:28
The usual check to differentiate between running Python-application on Windows and on other OSes (Linux typically) is to use conditional: if sys.platform == 'win32': ... But I wonder is it safe to use today when 64-bit Python is more widely used in last years? Does 32 really means 32-bit, or basically it refers to Win32 API? If there is possibility to have one day sys.platform as 'win64' maybe such condition would be more universal? if sys.platform.startswith('win'): ... There is also another way to detect Windows I'm aware of: if os.name == 'nt': ... But I really never saw in other code the

How Single App Binary Supports 64-bit and 32-bit Apps

孤者浪人 提交于 2019-12-03 03:19:43
问题 We can see apple announcement here.. According to this doc, we can submit same binary with supporting 32-bit and also 64-bit. I found one stack overflow answer here. But According to this answer, we should set deployment target as IO7+ . But apple doc said, you can submit this with IOS 7 and IOS 6 support? My question is, How can we generate binary with supporting 32-bit and 64-bit by deployment target IOS6+? Note: I'm using xcode 5.0 Update: Question above is fixed by using xcode 5.0.2 . But

Is it advisable to switch from Cygwin 32bit to Cygwin 64bit?

你离开我真会死。 提交于 2019-12-03 03:01:27
问题 I've been using Cygwin (for a long time). Specifically, I use it (including gcc/g++) on Win7 for development work. I've just recently noticed there now exists a 64-bit version. I don't have a specific need which requires that I make the transition to 64-bit, but I was wondering whether to do it anyway. Is it advisable? What are the pros and cons? Are there known over-arcing issues when making the transition? 回答1: Once upon a time, 64-bit Cygwin was missing many packages present in 32-bit

Is it possible to install both 32bit and 64bit Java on Windows 7?

Deadly 提交于 2019-12-03 02:59:45
问题 Is it possible to install both 32bit and 64bit Java on Windows 7? I have some applications that I can run under 64bit, but there are some that only run under 32bit. 回答1: Yes, it is absolutely no problem. You could even have multiple versions of both 32bit and 64bit Java installed at the same time on the same machine. In fact, i have such a setup myself. 回答2: You can install multiple Java runtimes under Windows (including Windows 7) as long as each is in their own directory. For example, if