Questions tagged [i386]

Use i386 tag for questions related to 32-bit implementation of x86 ISA

The 32-bit version of x86 instruction set architecture (ISA) is now called i386, after Intel's first 32-bit processor, the 80386, which is also known as i386.

For general x86 ISA questions, which are not specific to 32/64 bits, use tag instead.

279 questions
0
votes
0 answers

How can i use libboost1.54-all-dev:amd64 and I386 together?

I have a C++ Program which needs the program_options library from the libboost package. I installed boost with sudo apt-get install libboost1.54-all-dev and then i compiled my program with g++ program.cpp -m64 -static -lboost_program_options -o…
fusionlightcat
  • 365
  • 1
  • 5
  • 20
0
votes
0 answers

Trying to debug assembly file error

I am trying to port a 32bit assembly function to 64bit. Its save_context and restore_restore. Basically porting from i386 to x86_64 So here is my porting 32bit version : .align 4,0x90 .global save_context .type …
Rags
  • 434
  • 2
  • 6
  • 20
0
votes
1 answer

converting assembly code to x86_64

I need help porting a i386 assemble file to x86_64. Fairly new to assembly code so need help with this effort. So here is the old assembly file. And below that is the ported version of mine (all i did was change register type). I get a segmentation…
Curious Guy 007
  • 561
  • 2
  • 6
  • 17
0
votes
1 answer

How to tell Chef to install 32bit library ia32-libs on precise64?

Normally this should work package ia32-libs do action :install end ... but I am getting that the package is no longer present in Ubuntu 12.04 repositories for a 64bit system. So I found this thread on AskUbuntu that suggest to append :i386 to the…
zabumba
  • 12,172
  • 16
  • 72
  • 129
0
votes
3 answers

i386 Assembler Instruction Encoding

I am trying to understand how the instructions in programs compiled for i386/x86 are encoded (I use http://ref.x86asm.net/coder32.html for reference), but I can't seem to get a grip on the issue, despite rather good documentation. If someone could…
PuerNoctis
  • 1,364
  • 1
  • 15
  • 34
0
votes
2 answers

Atom operation read and write of Linux kernel on i386 architecture

static __inline__ int atomic_dec_and_test(atomic_t *v) { unsigned char c; __asm__ __volatile__( LOCK "decl %0; sete %1" :"=m" (v->counter), "=qm" (c) :"m" (v->counter) : "memory"); return c != 0; } this…
Adambynes
  • 197
  • 1
  • 10
0
votes
1 answer

How to install a 32-bit binary using Cabal

I'm running Ubuntu Precise with an amd64 kernel and amd64 userland. I've just installed Haskell using sudo apt-get install haskell-platform. Now I'd like to install a binary using cabal install .... However, that generates an amd64 binary. How is it…
pts
  • 80,836
  • 20
  • 110
  • 183
0
votes
1 answer

Using xcode to create static library with C, Error: "Undefined symbols for architecture i386"!

I am using xcode to create a static library with C, I seem to get an error Undefined symbols for architecture i386. The static library project, include three files: fun.c, testFun.cpp, testFun.h Here is testFun.cpp #include "testFun.h" extern void…
franker
  • 3
  • 4
0
votes
0 answers

Apple Match-O-Linker Error for MapKit ['Symbol(s) not found for architecture i386]

The following symbol(s) do not seem to be interpreted successfully in Xcode5. In addition, I added each specific header to both the interface and implementation; after searching the location of each symbol, but it still singles them out as undefined…
0
votes
0 answers

NASM::Can't convert string to int with value greater than 255

I have an issue with converting a string to an integer (a number). Correct conversion is done only if string have value below or equal to 255 (like: port db "255",0x0). In case integer value greater than 255 (like: port db "256",0x0), result is…
Tom Lime
  • 1,154
  • 11
  • 15
0
votes
1 answer

Sofia SIP build for i386/armv7

my last question was too unspecific I think. So my next is better.\ How can I compile the Sofia-Sip library for i386 and amrv7 ? Would be great to get an answer ! Thank you fellows, Alexander Heinrich
Sn0wfreeze
  • 1,959
  • 3
  • 18
  • 32
0
votes
1 answer

GNU Linker and architecture i386

So I'm running on OS X and I want to link two Mach-O objects i386. The first is generated from NASM (it's an assembly file) nasm -f macho -o kernel.o kernel.asm The second is generated from GCC gcc -c -arch i386 screen.c But when I try to link…
Maxime R.
  • 133
  • 1
  • 9
0
votes
2 answers

GAS assembly snippet divides by 0, not sure why

I have the following function, involving a snippet of i386 assembly in GAS syntax: inline int MulDivRound( int nNumber, int nNumerator, int nDenominator ) { int nRet, nMod; __asm__ __volatile__ ( "mov %2, %%eax …
benwad
  • 6,414
  • 10
  • 59
  • 93
0
votes
1 answer

Xcode does not recognize ViewContoller from my custom library

I have several projects which share many of the same classes and custom views/view controllers, so I created a custom static library which contain these common classes to be used directly in my client projects. These are the steps I took: I created…
0
votes
2 answers

compiling C++ with the scons compiler

I am using Mac OS X 10.8.2 and I am compiling my code using the scons compiler. I am using the 32 bit xerces-c database version 2.8.0. when I am trying to build I get errors: $scons scons: Reading SConscript files ... scons: done reading…
anibio
  • 1
  • 1
  • 1