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
66
votes
5 answers

Architecture of i386 input file is incompatible with i386:x86-64

I'm trying to create a simple kernel using Ubuntu. In the terminal I typed ld -Ttext 0x1000 -o kernel.bin loader.o main.o Video.o But I got the following error message in return: ld: i386 architecture of input file `loader.o' is incompatible with…
MEv2.0
  • 743
  • 2
  • 7
  • 8
36
votes
2 answers

Register allocation and spilling, the easy way?

I'm looking for a way to allocate local variables to registers. I'm aware of a couple of serious methods for doing it (namely, those mentioned on Wikipedia), but I'm stuck on how "spilling" is accomplished. Also, the relevant literature is quite…
Edmund
  • 10,533
  • 3
  • 39
  • 57
33
votes
4 answers

i386 different from x86?

While downloading Fedora Linux, they offer two options for download that I don't know the difference to: x86 and i386. So what'sthe difference between them?
X10nD
  • 21,638
  • 45
  • 111
  • 152
32
votes
4 answers

Why does the iOS simulator require i386 and x86_64 symbols even though I'm on an x86_64 system only?

I'm trying to get an app running on the simulator that has had some problems doing so before. We don't have libjpeg.a built for i386, but it does have x86_64. This is the only dependency left, but I'm wondering why I actually need i386 symbols, if…
Joey Carson
  • 2,973
  • 7
  • 36
  • 60
23
votes
4 answers

Undefined symbols for architecture i386

Possible Duplicate: symbol(s) not found for architecture i386 I have an app to complete, and when I start trying to understand what the previous developer did (it was done with Xcode 3 I think) by executing the simulator, Xcode 4 show me 25…
highthem
  • 245
  • 1
  • 2
  • 6
17
votes
4 answers

iOS simulator on mac is running i386 architecture, not armv7?

I've got some static libraries I've built for use on armv7 architectures. When I try to use them in a iOS project which I testrun on the iphone 5.0 simulator, I get errors telling me about undefined symbols for architecture i386 in my static…
KaiserJohaan
  • 9,028
  • 20
  • 112
  • 199
17
votes
2 answers

gcc Invalid version (max ) error adding symbols: Bad value

I've successfully build several 32 bit, static and Shared, libraries on Linux x86_x64 and I'm now trying to link them together to an executable and I get the following error: /usr/bin/ld: foo.so: __moddi3: invalid version 21 (max 0) foo.so: error…
Gil-Mor
  • 681
  • 1
  • 7
  • 15
15
votes
6 answers

/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

I am trying to install roccc 2.0. I have installed required packages. Now while installing it, it is giving me this error: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory I searched for gnu/stubs-32.h and came to…
user2931
  • 151
  • 1
  • 1
  • 5
12
votes
4 answers

missing required architecture i386 in file

I am having trouble building my app after adding MapKit and CoreLocation frameworks. They are both 4.3 frameworks, and the app used to work fine with UIKit, CoreGraphics, and Foundation, just giving me problems with these two. Not sure what the…
F3d3r3r
  • 125
  • 1
  • 1
  • 5
11
votes
1 answer

Building ffmpeg iOS libraries for armv7, armv7s, arm64, i386 and universal

I have seen several scripts to build FFmpeg API for armv7, 7s and i386 but couldn't find anything which would work for armv64 as well. Some of the answers on other threads of this forum suggested to prepare a separate library for arm64 but it does…
sandy
  • 2,127
  • 4
  • 28
  • 50
11
votes
4 answers

Running 32 bit exe on Ubuntu :libudev.so : cannot open shared object file: No such file or directory

I am trying to run an exe which uses libudev.so but it gives this error : error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory Running uname -a gives : 3.5.0-44-generic #67~precise1-Ubuntu…
Raulp
  • 7,758
  • 20
  • 93
  • 155
10
votes
1 answer

Build Multiarch OpenSSL on OS X

I need to build OpenSSL on OS X for 32 and 64 bit architectures. What are the options I need to give to ./Configure so that I get it built for both architectures into same .a file?
Seema Kadavan
  • 2,538
  • 1
  • 16
  • 31
9
votes
1 answer

What register in i386 stores the CPL?

I read in "INTEL 80386 PROGRAMMER'S REFERENCE MANUAL" (p112, S 6.3.1.3) that An internal processor register records the current privilege level (CPL). I am curious as to what register it refers to. Does it even have a name? What's the size of…
xtt
  • 857
  • 1
  • 8
  • 24
8
votes
1 answer

Is the i386 instruction "div ah" pointless?

From https://www.felixcloutier.com/x86/div: ... temp ← AX / SRC; IF temp > FFH THEN #DE; (* Divide error *) ELSE AL ← temp; AH ← AX MOD SRC; FI; ... For div ah the SRC would be ah. IMHO…
rfalke
  • 451
  • 4
  • 7
8
votes
1 answer

An i386/x64 pop FS/GS instruction supports a variant where it increments the SP by 32 bits or 64 bits in stead of 16 bits. What is it used for?

According to the Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 2 the pop fs supports 3 variants (the same goes for pop gs): Pop top of stack into FS; increment stack pointer by 16 bits. Pop top of stack into FS; increment…
Werner
  • 83
  • 4
1
2 3
18 19