Jon Bentley in Column 1 of his book programming pearls introduces a technique for sorting a sequence of non-zero positive integers using bit vectors.
I have taken the program bitsort.c from ... |
I am not sure how it happened but now when i click on it It will not do anything. i have to right click and click explore to open. ... |
On a 64bit Solaris Sparc system, can an Apache Server built in 64bit mode load a 32 bit plug-in?
|
I am developing an application that will run on 64 bit computers.
However, we are using a library that has 32 bit integers that we cannot change. And we will need to ... |
If I do:
#define TIMEFIXCONST 11644473600
on a 32bit machine, will it overflow or will it be stored as a long long and still work properly? Should I just define a global unsigned ... |
I was experimenting with the following code to simulate GetProcAddress.
// Retrieve NT header from base address.
IMAGE_NT_HEADERS *GetNtHeaderFromBase( void *pBaseAddr )
{
IMAGE_DOS_HEADER *pDosHeader;
IMAGE_NT_HEADERS ...
|
is there an elegant way to start a 64 bit process from an 32 bit compiled application?
The problem is that i need to compile one part in 32bit Sparc V8 mode. ... |
|
What are the points that should be kept in mind while writing code that should be portable on both 32 bit and 64 bit machines?
Thinking more on this, I feel if ... |
I am developing a 64 bit application. Is it possible to run the 64 bit application on a 32 bit OS?
Please note that the question is generic and not specific to ... |
Is there anyway from a C prog to find whether the OS is currently running in 32bit or 64bit mode. I am using a simple program as below
int main(void){
...
|
Update: After some more reading I see that this problem is totally general, you can't mix architectures in the same process, so 64 bit Java cannot dlopen() a 32 bit library ... |
I have some code which is built both on Windows and Linux. Linux at this point is always 32bit but Windows is 32 and 64bit. Windows wants to have ... |
Since our applications run in fullscreen mode, we have developed a keyboard hooking driver to disable user input for keys like ALT+F4, CTRL+ALT+DEL and so forth.
The driver is developed in C ... |
I need to rotate a 64 bit value using 2 32 bit registers. Has anyone come across an efficient way of doing this?
|
How can I get the information from a Process handle acquired using OpenProcess whether a Process is 32 or 64 Bit?
|
I have a function which expects a 8 bytes long unsigned char.
void f1(unsigned char *octets)
{
unsigned char i;
for (i=0;i<8;i++)
printf("(%d)",octets[i]);
}
This is how I use ... |
Is there a way to find out if the machine is 32-bit or 64-bit by writing some code in C?
|
On my Solaris 10 update 9 system the following command yields:
#isainfo -b
64
But if I create the following program in C with limits.h is included I get:
#include <stdio.h>
#include <limits.h>
int main(void)
{
...
|
written below is a crude code i wrote for accessing a serial port. attached to that port is a microcontroller that sends me data and having a baud rate of 57600. ... |
I need to concatenate two hexadecimal numbers 32 bits each each, to get a final result of 64 bits.
I tried the following code but didn't get a good result:
unsigned long a,b;
unsigned ...
|
are there any specifics when developing a device driver (kernel-mode) on Windows 7 32 bit or Windows 7 64 bit? Can I develop on some platform and prepare builds to run ... |
Is there a simple way to compile 32-bit C code into a 64-bit application, with minimal modification? The code was not setup to use fixed type sizes.
I am not interested in ... |
I'm trying to convert some old 32 bit code to 64 bit. One of the more frequent warnings I get is:
warning: cast of pointer to integer of different size
this happens when ... |
I have applications which successfully compile with the -m32 switch (in DMD and/or GCC) to produce:
appname: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked
(uses shared libs), for GNU/Linux ...
|
answered by Banfa You can not align anything to a specific bit but you can check alignment to bytes so really rather than checking for 32bit alignment you want to be checking for 4 byte alignment (because the ARM has 8 bits per byte). You will probably need to do something platform specific because you will need to examine the ... |
|
On 19 Apr, 00:55, "Dann Corbit" No, 32 bits is too small. > >I can't locate anywhere official-looking that it says this. Does the C >standard mandate some minimum number of bits? > Aparently the minimum is 10 decimal digits. With the exponent added, 32 bits is not enough. > Even without the exponent, it ... |
Hi, I would like to copy glibc/libgcc (in particular, libc.so. 6,libgcc_s.so.1) for a 32bit machine onto a 64bit machine. Would using the 32bit glibc/libgcc on the 64bit machine work? The reason I ask is that I've been getting the following error: Bin/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference and wonder if the above is ... |
I understood that the CPU registers determine the size of the machine. But what is the correct way to code an arithmetic operation to avoid wrap-around when the code is to be run on both 32-bit and 64-bit machines? Example: uint32_t x = SOME_LARGE_NO; uint64_t y; .... y = (uint64_t)(10000 * x); /* Will overflow occur before the cast? */ y ... |
In article <1180674587.614749.46770@q19g2000prn.googlegroups. com>, hey guys it is easy to do programming in graphics in 16bit TURBO C >compiler,but how to work in graphics in 32bit TCWIN4.5 compiler/MS VC+ >+. There are no graphics operations specified by the C language itself. All graphics operations are system-specific extensions (though sometimes you can find -relatively- portable graphics libraries that hide the details ... |
Hi, I am trying to compute a 64 bit result from 2 32 bit registers, How do I get the carry into the higher word ? Also is %lld correct ? #include long long int64( long x, int y); main() { printf("%lld \n",int64(0xffffffff,1)); } long long int64( long x, int y) { return x + y; } Ans should be 0x100000000. ... |
One common answer is that all compilers keep the size of integer the same as the size of the register on a particular architecture. Thus, to know whether the machine is 32 bit or 64 bit, just see the size of integer on it. Is it Correct?? Or there any other way of finding it out? Do I need to mention ... |
Hi folks I wrote the naive program to show up the unit roundoff (machine precision) for single and double precision: #include int main (void) { double x; float y ; x=1; while ( (1+x) > 1 ) x = x/2; x = 2*x; printf("double precision epsilon: %e\n", x); y=1; while ( (1+y) > 1 ) y = y/2; y = ... |
|
|
Hi! I have a program (created a simple compiler using lex and yacc). I compile and run the program on my 64(SUSE) and it runs fine -- also worked for someone else on 64(Gentoo), but when I compiled and ran it on a 32-bit machine (CentOS) it seg faults. Could there just be an error in my program? Could this be ... |
|
|
Hi, First of all apologies if this is not the right forum. This is a first of its kind for me. There is an existing 32 bit C application that needs to be ported to a 64 bit machine. Now apart from taking care of pointers, size of int, conversions, Endian-ness, so and so forth, there is something else that has ... |
I have a 64-bit application that loads a 64-bit shared object. This shared object needs to talk to 32-bit libraries. This is on a 64-bit Debian box. Is there any way to do this besides using some sort of IPC. I can build a 32-bit app that statically loads the 32-bit libraries, but am trying to avoid this. Thanks for your ... |
hi, i have a 64 bit number represented into a structure as two 32 bit numbers. their data type is unsigned long. i would like to print the 64 bit number. can u suggest any method to print the 64 bit number using the two 32 bit numbers. also i would like to convert the 64 bit number to a string ... |
Hello there, i want to know how to program a 32bits application in C. When i launch my compiler to create a 32b app, he work fine but after creating the source, i don't know where to place my code etc... btw, i'm starting programmation since 3 months. Thkx for answers, bye ! |
It depends on how your application is written. If you have an executable that runs on the 32 bit system, then your ability to run it in a 64 bit system comes down to whether that 64 bit system understands the 32 bit executable format. For example, a 64 bit version of an operating system may come with an emulator that ... |
#include #define SIZE 32 int a[SIZE]; int b[SIZE]; int sum[SIZE]; int sflag(int a, int b, int c) { return (a && !b && c); } int carry(int a, int b, int c) { return (a && b) || (b && c) || (a && c); } int add(int a, int b, int c) { return (a && !b && !c) ... |
|
|
|
>sizeof (int) gives me 4 bytes...is it sufficient to say that my machine is of type 32-bit For your intended purposes, it probably is sufficient. But even if a machine supports 32-bit integers or has a 32-bit address space that doesn't mean it's a 32-bit machine. The term 32-bit machine is referring to the size of the data bus, and it ... |
|
Reason for 2: when it comes to developing drivers 64bit and 32 bit makes a huge difference Your 32 bit designed driver generally wont work if you just compile it with a 64 compiler (by wont work I mean it will crash the OS a lot) to name a few areas that give problems ptr sizes are different , structures are ... |
Oracle 9i on AIX 5.1 is a 64 bit version. Oracle9i provides 32 bit and 64 bit client libraries for building the applications to support the applications in both forms. Our application is a 32 bit one, I am in the process of building our application on AIX 5.1 with Oracle9i client libraries. I am not able to build our application ... |