[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.

Re: [fpc-pascal] getopts unit vs CustApp parameter handling

2016-05-03 Thread Michael Van Canneyt
On Tue, 3 May 2016, Graeme Geldenhuys wrote: Hi, Is the getopts unit deprecated or not recommended for usage? It is not deprecated. The reason I ask is because I see CustApp has similar functionality to the getopts unit, but the custapp has it’s own implementation - it doesn’t use the get

[fpc-pascal] getopts unit vs CustApp parameter handling

2016-05-03 Thread Graeme Geldenhuys
Hi, Is the getopts unit deprecated or not recommended for usage? The reason I ask is because I see CustApp has similar functionality to the getopts unit, but the custapp has it’s own implementation - it doesn’t use the getopts unit at all. Or am I not understanding the purpose of the getopts unit