[MPlayer-dev-eng] [PATCH] Fix MPlayer to compile on Darwin/x86_86

Loren Merritt lorenm at u.washington.edu
Tue Jun 2 22:48:49 CEST 2009


On Tue, 2 Jun 2009, Guillaume POIRIER wrote:

> I have not found where in Apple's doc that information is written. However,
> here's what one of Apple's engineer has responded to me about that problem:
>
> This is a courtesy email regarding Bug ID# 6910963.
> Engineering has provided the following feedback regarding this issue:
> Thank you for the additional information.
> The asm code is wrong for 64-bit.  The software needs porting to work.  You
> cannot use the "g" constraint for mov.  mov will take an "r" for example of
> a constraint that will work.

You can you a "g" constraint for mov; it supports 64bit immediates.
But mov is the only such instruction. You can't use "g" constraint for 
cmp, if the value might not fit in int32.

> Other than that, Apple's doc about porting code to 64-bits is here:
> http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/1-Articles/x86_64_code.html

This doc says that dither[]'s address will fit in uint32, but x86 
immediates are signed.

--Loren Merritt



More information about the MPlayer-dev-eng mailing list