Re: [fpc-pascal] intel vs att asm (fstp instruction) (osx/clang features)

2016-05-04 Thread Dmitry Boyarintsev
On Wed, May 4, 2016 at 6:14 AM, Pierre Free Pascal 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 r

Re: [fpc-pascal] intel vs att asm (fstp instruction) (osx/clang features)

2016-05-04 Thread Ched
ntsev *Envoyé :* mercredi 4 mai 2016 02:28 *À :* FPC-Pascal users discussions *Objet :* [fpc-pascal] intel vs att asm (fstp instruction) (osx/clang features) Hello, I'm dealing with the following code (from ZenGL library), targeting OSX --- {$mode delphi} procedure m_Sin

Re: [fpc-pascal] intel vs att asm (fstp instruction) (osx/clang features)

2016-05-04 Thread Pierre Free Pascal
...@lists.freepascal.org] De la part de Dmitry Boyarintsev Envoyé : mercredi 4 mai 2016 02:28 À : FPC-Pascal users discussions Objet : [fpc-pascal] intel vs att asm (fstp instruction) (osx/clang features) Hello, I'm dealing with the following code (from ZenGL library), targeting OSX --- {

[fpc-pascal] intel vs att asm (fstp instruction) (osx/clang features)

2016-05-03 Thread Dmitry Boyarintsev
Hello, I'm dealing with the following code (from ZenGL library), targeting OSX --- {$mode delphi} procedure m_SinCos( Angle : Single; out s, c : Single ); assembler; asm FLD Angle FSINCOS FSTP [EDX] FSTP [EAX] end; var s,c: single; begin m_SinCos(0,s,c); end.