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

Objective C and C++ symbol(s) not found for architecture i386

I have Objective-C Function and C++ file,which i renamed .mm and connected to my project, i need to use Objective-C function in C++ file,but Xcode gives me: Undefined symbols for architecture i386: "maxRadiusFinder(double*, int, int)", referenced…
user3579086
  • 123
  • 6
3
votes
2 answers

what's the meaning of ENTRY statement in entry.S in Linux kernel for i386

for example in entry.S ENTRY(ret_from_fork) pushl %eax call schedule_tail GET_THREAD_INFO(%ebp) popl %eax jmp syscall_exit so what's the syntax of ENTRY in as language? I think all the directive of as is start with . and the…
Adambynes
  • 197
  • 1
  • 10
3
votes
2 answers

Writing the translation lookaside buffer

Applications work with virtual memory. That's a nice concept, we can treat it like a contiguous block and needn't care about whether it's contiguous in physical RAM or not or if it's even on hard disk. As far as I understand the mapping between…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
3
votes
1 answer

How to test a x64 CPU emulator

Where can I find code (bootable image, ROM dump, executable file) to test all features of the CPU to check if an emulator is emulating everything correctly? Things like faults, exceptions, unusual instructions, 286 protected mode, debug register…
Martin
  • 911
  • 7
  • 21
3
votes
1 answer

PolarSSL's asm code execute different result in iPad4 and simulator

I am developing an encrypt and decrypt app.I use the bignum algorithm.That is polarSSL. In Xcode simulator ,it works well and could decrypt file successfully.But when I run the same project on the real device(iPad 4),it crashed. So I debug it and I…
Onetaway
  • 55
  • 7
3
votes
3 answers

iPhone Static Library Issues With Simulator

So I have an iPhone static library that I am trying to build. I've got the script that was used in this question (http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4), but the issue I've hit is…
Nobosi
  • 1,066
  • 6
  • 14
3
votes
1 answer

Cross Compiling libogg for iOS

I've been trying to cross compile libogg for armv6, armv6 and i386 using the iOS 5.1 SDK in Mountain Lion. Libogg uses autoconf, and I've been having pretty similar issues with a few other libraries as well. I picked up a neat little…
Darcy Rayner
  • 3,385
  • 1
  • 23
  • 15
2
votes
2 answers

While using two static library in project, conflict due to class with same name compiled in both static libraries

I have implemented two static library having the following structure: FirstStaticLibrary.a BaseClass.h @interface BaseClass -some methods @end FirstDerivedClass.h @interface FirstDerivcedClass:BaseClass { } -some…
2
votes
1 answer

Not able to debug and run the application in iPhone device using the XCode4

I trying to install the application into my device, i am getting lots of warning messages and one error. I am using MAC 10.7 and Xcode 4.1 warning: no rule to process file '$(PROJECT_DIR)/ThirdParty/ShareKit/Customize UI/SHKCustomShareMenu.m' of…
Sandeep
  • 21
  • 3
2
votes
1 answer

Boost XCode i386

I need to use i386 with Boost because of another SDK I'm using. I tried building Boost with ./b2 toolset=darwin architecture=x86 address-model=32 to get the 32-bit version, but it's giving me a linker error: ld: symbol(s) not found for…
trit
  • 31
  • 3
2
votes
1 answer

Why function that refers to a global function in the same section can only be solved at link time while local functions will be solve at compile time?

I have this assembly file prog.S : .text #------------------------------main---------------------------------- .globl main .type main,@function main: pushl %ebp movl %esp, %ebp call myGlobalFunction # call to my global func call…
Dewo
  • 23
  • 4
2
votes
1 answer

Why would the IRET instruction increment EIP by 4?

From the Intel 80386 Programmer's Reference Manual: IRET is similar to RET except that IRET increments EIP by an extra four bytes (because of the flags on the stack) and moves the saved flags into the EFLAGS register. I don't exactly get why IRET…
Tortellini Teusday
  • 1,335
  • 1
  • 12
  • 21
2
votes
1 answer

How to update GDT entries after initial loading?

Once I initialize and load my GDT into the GDTR using lgdt, how can I update the GDT later? Am I correct if I use the sgdt command to get the base address and then update or add entries followed by reloading it again with the lgdt? Is there some…
2
votes
1 answer

Is there any way to make a far jump in i386 protected mode using registers?

CODE_SEGMENT equ 0x8 jmp CODE_SEGMENT:label1 makes a far jump to label1 after loading CODE_SEGMENT in the CS register. I want achieve something like mov ax, CODE_SEGMENT jmp ax:label1 How can this be achieved?
2
votes
1 answer

Visual Studio Code installation error on Ubuntu18.04 32-bit: "snap "code" is not available on stable for this architecture (i386)"

I get the below error while trying to install Visual Studio Code on Ubuntu 18.04 32bit: error: snap "code" is not available on stable for this architecture (i386) but exists on other architectures (amd64).
user1484048
  • 33
  • 1
  • 3