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
2
votes
1 answer

How can I set Xcode Organizer to run with x86_64 binaries?

I'm programming in fortran and I could use a nice interface to a debugger. Following the advice of this page, I decided to give the Xcode organizer a try. I can get my program to build fine but when I try to execute it, I get this error: The active…
EMiller
  • 2,792
  • 4
  • 34
  • 55
2
votes
0 answers

How can I find a specific portion of a program within a hex dump?

If I am looking at a section of assembly code disassembled in PE Explorer how can I find that section of the program in a hex dump within HxD? I need to modify the program flow. I may not be using the appropriate software. I can post any additional…
2
votes
1 answer

Why does gcc generates strange code without flag -fno-pie?

I am trying to compile dummy function in gcc with flag -fno-pie and without. void dummy_test_entrypoint() { } When i compile without the flag. gcc -m32 -ffreestanding -c test.c -o test.o I get the following disassembled code. 00000000…
Kostya
  • 31
  • 3
2
votes
0 answers

Initializing variables in assembly

I am writing an Forth Interpreter in i386 Assembly. Some data needs to be initialized at the start, and then re-initialized later as part of an error recovery process. I followed the Linker Script guidance in…
2
votes
1 answer

In x86 assembly, when should I use global variables instead of local variables?

I am creating some small programs with x86 assembly, and it's my first time using a low level language so I'm not used to it. In high level languages I rarely use global variables, but I've seen a lot of tutorials using global variables in assembly,…
2
votes
1 answer

How do I use Sqlite in a dylib in an i386 app in XCode 4? This approach does work in iPhone app

Using Sqlite in a dylib in an i386 app in XCode 4 For iOS I needed to add a file namely libsqlite3.0.dylib from directory: /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/ I have a method that obtains and MaxID…
mbarron
  • 285
  • 4
  • 15
2
votes
0 answers

How to bundle a python server with pyinstaller for AppStore as 64bit only?

Context: I am trying to put an electron app on the App Store. The app features a web frontend and a python backend. Nothing fancy so far. The backend however features a separate server written in python. This server is a standalone application. The…
VladMode
  • 43
  • 9
2
votes
1 answer

Specify physical address for an ELF32 section in yasm?

I'm trying to use yasm to build a simple ELF program. However, I can't figure out how to get it to target the .TEXT section so that it's VMA address begins at 0x1000, rather than 0. I've tried using START and ORG directives, but these only appear to…
Earlz
  • 62,085
  • 98
  • 303
  • 499
2
votes
1 answer

brew install i386-elf-gcc and error:contains conflicting version recursive dependencies

brew install i386-elf-gcc ==> Installing i386-elf-gcc from altkatz/gcc_cross_compilers Error: altkatz/gcc_cross_compilers/i386-elf-gcc contains conflicting version recursive dependencies: gmp, gmp@4, mpfr, mpfr@2, libmpc, libmpc@0.8 View these…
J.d.sn
  • 19
  • 6
2
votes
1 answer

Get total avaiable RAM from the GRUB2 multiboot info structure

I managed to access the GRUB multiboot info structure (multiboot_info_t) in my i386 kernel, and there are two fields called mem_lower and mem_upper respectively. How do I use them to get the total available RAM (in bytes)?
SpilledMango
  • 575
  • 7
  • 25
2
votes
1 answer

What's the difference between `lodsl` and `movl (%esi), %eax; addl $4, %esi`?

I was reading the book Programming from the Ground Up by Jonathan Barlett for learning i386 assembly on Linux My purpose was to read some project's soure code which was written in asm, then i met this LODSL, from the manual i could know it load data…
jyf1987
  • 135
  • 13
2
votes
1 answer

Need to Build for i586 target with GCC 5.3 i686 Host Toolchain

I need to build for an i586 target (no MMX instructions) using GCC 5.3 within a i686 host environment (32 bit Ubuntu Docker container). The host toolchain is i686. Is there anyway to do this without building a i586 cross-compiler ?
crayguy
  • 75
  • 6
2
votes
1 answer

How can I force qtcreator to create non-universal binaries

When I use qtcreator on mac, it creates universal binaries. Does anyone know how to set it so it just creates a 'native' binary? (So i386' in my case?) Qtcreator uses qmake as a buildsystem. Google hasn't been my friend so far, I hope stackoverflow…
Toad
  • 15,593
  • 16
  • 82
  • 128
2
votes
1 answer

32 bit libraries not detected by locate command

So I've been trying to update my glass fish server, yet i need to get my 32bit libraries to work. The issue is that I added the i386 architecture **dpkg --add-achitecture i386**, then i installed the packages I was asked after I updated "apt-get…
2
votes
2 answers

Undefined symbols for architecture i386/armv7 [cocoapods]

After installing a custom pod with $ pod install command, I can't build the project because there are some errors like below (on my Xcode the error is about armv7, on an another Xcode, the error is about i386 architecture): Undefined symbols for…
Luca D'Alberti
  • 4,749
  • 3
  • 25
  • 45