[fpc-pascal] intel vs att asm (fstp instruction) (osx/clang features)
Dmitry Boyarintsev
skalogryz.lists at gmail.com
Thu May 5 01:08:47 CEST 2016
On Wed, May 4, 2016 at 6:14 AM, Pierre Free Pascal <pierre at freepascal.org>
wrote:
> I think the correct solution for you is to use explicit size information:
>
>
>
> FSTP SINGLE PTR [EDX]
>
> FSTP SINGLE PTR [EAX]
>
Indeed that worked as expected. Thank you.
> but
>
> FSTP [s]
>
> and
>
> FSTP [c]
>
It still requires explicit size information, like
FSTP SINGLE [s]
> My GNU as version 2.26 does not seem to need an explicit size,
>
> but I don’t know what Xcode uses, isn’t it also a GNU assembler?
>
> Could you tell us which assembler is used?
>
It's Apple's clang IIRC Apple stopped using gnu-tools since Xcode 3.2 or
something like that.
Here are more exact details:
$ as -v
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.3.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
-cc1as -triple x86_64-apple-macosx10.11.0 -filetype obj -main-file-name -
-target-cpu core2 -dwarf-version=2 -fdebug-compilation-dir
/Users/dmitry/FPC_Laz -dwarf-debug-producer Apple LLVM version 7.3.0
(clang-703.0.29) -mrelocation-model pic -o a.out -
thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160504/fd916112/attachment.html>
More information about the fpc-pascal
mailing list