32-bit

Create 32-bit and 64-bit Static Library for Devices and Simulators - Xcode

邮差的信 提交于 2019-12-11 07:53:21
问题 I've got this SDK that supports 64-bit. For whatever reason, the library does not build on iOS simulators. To circumvent this I've created my own static library that instantiates the headers and implements everything. This method has always worked and allowed me to build and run the project on a simulator and devices (The standard library is used for devices and my static library is used for simulators). Now that we have 64-bit and 32-bit devices and simulators, my static library does not

Understanding recursive factorial function in NASM Assembly

这一生的挚爱 提交于 2019-12-11 06:55:51
问题 Learning NASM Assembly on 32-bit Ubuntu. I'm now trying to learn about recursive functions, starting with factorial (note: here I am assuming that the parameter will always be non-negative). Assuming that I have push 3 call factorial I want to end up with 6 in EAX . Here is my attempt: SECTION .text global main main: ; ----------------------------------------------------------- ; Main ; ----------------------------------------------------------- push 3 call factorial ; -----------------------

NASM Assembly recursive fibonacci

偶尔善良 提交于 2019-12-11 06:48:02
问题 Learning NASM Assembly on 32-bit Ubuntu. I've been learning about recursive functions. I just did factorial, with your help here: Understanding recursive factorial function in NASM Assembly Watching the code, I thought that maybe I could quickly implement fibonacci as well, using almost the same code. Here is the code, assuming that the parameter is always greater than 0 : SECTION .text global main main: ; ----------------------------------------------------------- ; Main ; ------------------

How to avoid 32/64 bit architecture dilemma in Windows and .Net? [duplicate]

落花浮王杯 提交于 2019-12-11 05:05:11
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: What does the Visual Studio “Any CPU” target mean? We have a WPF application that must work on plenty of Windows machines from Windows XP x32 to Windows 8 x64. Our app includes NHibernate and SQLite. We do not need any feature of x64. How can modify application to run without any problem on all architectures? Our app is in .Net 4.0 回答1: Unless you have both the 64bit and 32 bit dll's of your external dependences

How to programatically detect a 64 bit or 32 bit machine?

安稳与你 提交于 2019-12-11 01:03:25
问题 I don't understand what 32 bit and 64 bit means. It seems that people say 64 bit computers run faster - but why? Does it mean that there are 64 bit integers instead of 32? If it's something like that, is there a way to write a program to determine if we're on a 32 bit or 64 bit machine? 回答1: On 64-bit machines pointers are 8 bytes (64 bits). On 32-bit machines they are 4 bytes (32 bits). Thus we can determine by the size of a pointer what we are dealing with, in it's simplest form: #define IS

AVX512BW: handle 64-bit mask in 32-bit code with bsf / tzcnt?

浪子不回头ぞ 提交于 2019-12-10 23:09:46
问题 this is my code for 'strlen' function in AVX512BW vxorps zmm0, zmm0, zmm0 ; ZMM0 = 0 vpcmpeqb k0, zmm0, [ebx] ; ebx is string and it's aligned at 64-byte boundary kortestq k0, k0 ; 0x00 found ? jnz .chk_0x00 now for 'chk_0x00', in x86_64 systems, there is no problem and we can handle it like this: chk_0x00: kmovq rbx, k0 tzcnt rbx, rbx add rax, rbx here we have a 64-bit register so we can store the mask into it but my question is about x86 systems where we don't have any 64-bit register so we

Detect if the processor is 64-bit under 32 bit OS

纵然是瞬间 提交于 2019-12-10 13:53:14
问题 Normally, x86-64 architecture offers compatibility with x86. A 32-bit Windows (or other OS) can run on an x86-64 processor. (Correct me if I am wrong). I would like to know if it is possible (in C++) for a 32-bit Windows to know that if underlying processor is 64-bit. For example, if Windows 7 32-bit running on Core i5, we should be able to know that processor is 64-bit (although Windows 7 32 bit is running). You may question the requirement that even if processor is 64 bit and OS is 32 bit,

What are the actual performance differences between Int64 and Int32 on 32 and 64 bit MS Windows?

自闭症网瘾萝莉.ら 提交于 2019-12-10 13:17:28
问题 What are the actual performance differences between Int64 and Int32 on 32 and 64 bit MS Windows? It would also be great to see some actual timings of Int64 vs Int32 on each of the two operating system variants. XP or Vista would also be interesting. See also this question about memcpy performance. 回答1: As far as hardware, Int64 will be more efficient on an x64 and IA64 than x86 because the 64-Bit processors have 64-Bit registers to perform the operations on them. Int32 will be equally as

LXML 3.3 with Python 3.3 on windows 7 32-bit

本秂侑毒 提交于 2019-12-10 12:25:59
问题 I am having major issues with this install. Please provide a detailed, step-by-step guide . 回答1: These instructions are for Windows7 or Windows8 with Python3.3 . However , they should work for various versions as the releases of python and other respective prerequisites change/evolve: Install Python3.3 : Download the last release of Python3.3 (currently 3.3.5) from the downloads page HERE Direct link for Win32 MSI installer -> HERE Simply run the MSI to install python. It will register itself

How to develop to take advantage of 64 bit systems?

早过忘川 提交于 2019-12-10 03:42:00
问题 Is there any specific sectors of Software Engineer/Computer Science where there's a marked difference when developing for 64 bit systems? I've been coding for around 10 years now, and since the break of 64 bit systems, my code hasn't changed one bit. What applications that a single coder can code as a side project require you to use 64 bit technology? 回答1: Anything that requires more than 4 GB of working and program memory would certainly qualify, since that is the maximum amount of memory