32bit-64bit

Detect CPU Architecture (32-bit / 64-bit) runtime in Objective C (Mac OS X)

烂漫一生 提交于 2019-12-21 20:48:16
问题 I'm currently wring a Cocoa application which needs to execute some (console) applications which are optimized for 32 and 64 bit. Because of this I would like to detect what CPU architecture the application is running on so I can start the correct console application. So in short: how do I detect if the application is running on a 64 bit OS? Edit: I know about the Mach-O fat binaries, that was not my question. I need to know this so I can start another non bundled (console) application. One

32-bit process’s address space on 64-bit linux

别来无恙 提交于 2019-12-21 16:50:17
问题 In this answer author states: With the 64-bit x86_64 kernel, a 32-bit process can use the entire 4GB address space, except for a couple pages (8KB) at the end of the 4GB address space which are managed by the kernel. What is the purpose of this kernel-managed memory? Shouldn’t it be in the kernel space, to prevent accidental corruption by the user? 回答1: Citing the kernel source: “ Kernel pointers have redundant information, so we can use a scheme where we can return either an error code or a

Inno Setup 32bit and 64bit dll installation

会有一股神秘感。 提交于 2019-12-21 10:55:12
问题 If the OS is 64bit I want to install a 32bit DLL to the Program Files (x86) folder and 64bit DLL to Program Files folder and register them respectively. If it is a 32bit OS I just want to copy the file to the normal program folder and register. How can I do this in Inno Setup? Also will the 64bit DLL be registered by the 64bit regsvr32 program? Here is my code so far. It works fine on 32bit OS but on 64bit OS it dumps both set of files in the Program Files (x86) . [Files] Source: D:\..\32bit

How can I compile 32- and 64-bit DCUs into separate directories?

萝らか妹 提交于 2019-12-21 10:48:22
问题 I'm trying to maintain one repository, most everything in my code base is source, but we've got the QuickPDF library which is a bunch of precompiled DCU's. I'd like to put them in version control somehow but I don't want to have yet another option set for win64 that I'm going to forget about before I convert the rest of my trillion LOC codebase to win64. What I was thinking was just having (and quickPDF is just an example, there's nothing special about this library other than its unfortunate

Do 32bit apps run faster or slower on a 64bit OS? [closed]

柔情痞子 提交于 2019-12-21 07:05:27
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I've mostly worked on 32bit embedded systems where it was generally faster to use native 32bit types (int, float) than the 16bit

Why is 64 bit Delphi app calculating different results than 32 bit build?

落爺英雄遲暮 提交于 2019-12-21 07:05:16
问题 We recently started the process of creating 64 bit builds of our applications. During comparison testing we found that the 64 bit build is calculating differently. I have a code sample that demonstrates the difference between the two builds. var currPercent, currGross, currCalcValue : Currency; begin currGross := 1182.42; currPercent := 1.45; currCalcValue := (currGross * (currPercent * StrToCurr('.01'))); ShowMessage(CurrToStr(currCalcValue)); end; If you step through this in the 32 bit

Find bitness (32-bit/64-bit) from Excel Application object?

大城市里の小女人 提交于 2019-12-21 05:24:11
问题 Is it possible to determine whether Excel is running in 32-bit or 64-bit from the Microsoft.Office.Interop.Excel.ApplicationClass? Edit The solution should work for both Excel 2010 and Excel 2007 回答1: This code should give you the "bitness" of Excel. Microsoft.Office.Interop.Excel.ApplicationClass app = new Microsoft.Office.Interop.Excel.ApplicationClass(); if (System.Runtime.InteropServices.Marshal.SizeOf(app.HinstancePtr) == 8) { // excel 64-bit } else { // excel 32-bit } EDIT: here is

How to deploy a desktop JavaFx 2.0 application correctly using jnlp for 32 and 64 bit?

点点圈 提交于 2019-12-21 05:07:19
问题 I have a jnlp file for deploying my javafx 2.0 application, however, how do I make sure that the users have the correct javafx runtime (32 or 64 bit depending on the jvm present on the machine) and if not, download it and run the application. Assuming that the user does not have a javafx runtime currently installed, the problems that I'm facing mostly with a 64 bit machine with either 32-bit, 64-bit or both JRE's are: 1) The Javafx swing deployment guide mentions to use the <jfx:javafx

Batch to detect if system is a 32-bit or 64-bit

喜欢而已 提交于 2019-12-21 03:23:10
问题 Does anybody know how to create a batch file that can shell one program if its a 64-bit system or shell another if its a 32-bit system? 回答1: Check for %PROCESSOR_ARCHITECTURE% being x86 : if %PROCESSOR_ARCHITECTURE%==x86 ( rem 32 bit ) else ( rem 64 bit ) At least for the time being. On a server I have access to it's AMD64 but no clue how Itanium looks like, for example. But 32-bit versions always report x86 . Another option, that also works on WoW64: for /f "skip=1 delims=" %%x in ('wmic cpu

Bluetooth in java (J2SE)

拜拜、爱过 提交于 2019-12-20 20:41:22
问题 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 回答1: The bluetooth apis recommended in the oracle tutorials are included in the JSR 82 API