32-bit

How are numbers greater than 2^32 handled by a 32 bit machine?

一笑奈何 提交于 2019-12-12 07:59:38
问题 I am trying to understand how calculations involving numbers greater than 2 32 happen on a 32 bit machine. C code $ cat size.c #include<stdio.h> #include<math.h> int main() { printf ("max unsigned long long = %llu\n", (unsigned long long)(pow(2, 64) - 1)); } $ gcc output $ gcc size.c -o size $ ./size max unsigned long long = 18446744073709551615 $ Corresponding assembly code $ gcc -S size.c -O3 $ cat size.s .file "size.c" .section .rodata.str1.4,"aMS",@progbits,1 .align 4 .LC0: .string "max

SSRS must Excel be installed on Reporting server to use Excel as a Data SOURCE?

假装没事ソ 提交于 2019-12-12 06:24:26
问题 If users would like to use Excel as a data source for Report Builder (of SSRS - SQL Server Reporting Services), does Excel need to be installed on the Report Server? We also have issues with 32-bit ODBC drivers vs 64 bit drivers but I want to rule out (or rule in) that Excel needs to be on the Server. Thanks! 回答1: No, you don't have to install Excel. The MS Business Intelligence Development Studio (ie. Visual Studio) is 32-bit and you need 32-bit ODBC drivers for report development. I'll

How to set the tcp option timestamp while building a tcp SYN packet using python?

旧时模样 提交于 2019-12-12 04:43:57
问题 I need to send a tcp SYN packet with timestamp value in tcp option. Since tcp opts should be prepacked in 32-bit representation, can anyone brief me how to set the value in 32 bit packet representaion with a example. Thanks in advance 回答1: You should be able to do that pretty easily with Scapy. When defining your TCP layer, just use TCP(flags='S', options=[('Timestamp', (TSval, 0))]) where TSval is your timestamp value. If you want to convert the resultant packet to its binary representation,

Assembly (Intel syntax + NASM) Error: attempt to define a local label before any non-local labels

戏子无情 提交于 2019-12-12 04:13:39
问题 I am quite new regarding the assembly and I am trying to work with a program. So whenever I try to compile it, I get the error for the line, as listed under the comments in the code. I am wondering if anyone has any ideas why NASM detects this errors when I am defining some things for the rest of the assembly code? Maybe it has to do something with how the main is defined? P.S. I listed just the first part of the code, since the program is quite long. Thank you for the help .xlist ;attempt to

C Function Call Convention: Why movl instead of pushl?

帅比萌擦擦* 提交于 2019-12-12 02:44:39
问题 I don't understand why the following lines are using movl to push data below the stack pointer are produced by GCC. movl -4(%ebp), %eax # -4(%ebp) <- local variable 1 movl 8(%ebp), %edx # 8(%ebp) <- first parameter movl %edx, 8(%esp) # ??? WHY NOT: pushl %edx movl %eax, 4(%esp) # ??? WHY NOT: pushl %eax movl -8(%ebp), %eax # ??? WHY NOT: pushl -8(%ebp) movl %eax, (%esp) call athena movl %eax, f (full code) I guess this code tries to push 3 parameters for the function call. But why isn't it

Does JavaFX work in 32-bit Windows? (or with a 32-bit JVM)?

走远了吗. 提交于 2019-12-12 01:33:54
问题 Since JavaFX only works for 64-bit Linux and 64-bit OS X as far as I know (because the newer verison of Java hasn't been released in 32-bit), I'm curious if JavaFX is able to work on 32-bit Windows. Any thoughts? Thanks! 回答1: It does. I'm doing it right now ;) 来源: https://stackoverflow.com/questions/3338084/does-javafx-work-in-32-bit-windows-or-with-a-32-bit-jvm

Running 32-bit ASP.NEt 3.5 apps in Windows 2003 64-bit

a 夏天 提交于 2019-12-11 19:36:18
问题 I've managed to get my 32-bit apps working on IIS in Windows Server 2003 64-bit, but I'm wondering if I will encounter any other issues doing so. Any ideas? 回答1: One issue with IIS6 (but fixed in IIS7) is that you are stuck using either 32-bit or 64-bit ASP.NET worker processes. See http://blogs.msdn.com/rakkimk/archive/2007/11/03/iis7-running-32-bit-and-64-bit-asp-net-versions-at-the-same-time-on-different-worker-processes.aspx ... However, if you really need to access 32-bit DLLs in your

Converting 32-Bit Real to 2x 16-Bit Bytes

不打扰是莪最后的温柔 提交于 2019-12-11 19:33:09
问题 I'm trying to send a 32-Bit Real across a CAN communications (IFM) but the CAN comms only accepts a 16-Bit value. If the value I'm trying to send goes above 255, it resets back to 0 and continues in that pattern. I therefore need to split the 32-Bit Real value in to two 16-Bit values and then reassemble on the other side of the comms. I just can't seem to get my head around how to do it in structured text. Any help would be appreciated 回答1: I know I am a little late to the party but wanted to

Print 64 bit number stored in EDX:EAX to standard out

你说的曾经没有我的故事 提交于 2019-12-11 12:09:25
问题 I have large 64 bit number stored in EDX:EAX as 21C3677C:82B40000 respectively. I'm trying to print the number out to the console as a decimal 2432902008176640000 Is there a system call that will allow me to accomplish this? 回答1: Someone has to have mercy on this guy and his classmates. If "just call printf" isn't cheating, using this shouldn't be cheating either. I stole this from one of the first asm programs I ever encountered. It used a DOS interrupt to find the disk size and printed dx

Serving large files (>2GB) with libevent on 32-bit system

拈花ヽ惹草 提交于 2019-12-11 09:02:25
问题 Preamble: lightweight http server written in C based on libevent v2 (evhttp), Linux, ARM, glibc2.3.4 I'm trying to serve big files (over 2GB) using evbuffer_add_file() on 32 bit system. The libevent was compiled with -D_FILE_OFFSET_BITS=64 flag. Here is the simplified code: int fd = -1; if ((fd = open(path, O_RDONLY)) < 0) { // error handling } struct stat st; if (fstat(fd, &st) < 0) { // error handling } struct evbuffer *buffer = evbuffer_new(); evbuffer_set_flags(buffer, EVBUFFER_FLAG