[fpc-devel] OSX: Setting up parameters to objc_msgSend()

Jonas Maebe jonas at freepascal.org
Sat Oct 13 17:44:17 CEST 2018


On 13/10/18 16:45, Dmitry Boyarintsev wrote:
> On Sat, Oct 13, 2018 at 9:55 AM Dmitry Boyarintsev 
> <skalogryz.lists at gmail.com <mailto:skalogryz.lists at gmail.com>> wrote:
> 
>     ObjC language doesn't have its own boolean type. 
> 
> No. I'm convienced now: http://wiki.freepascal.org/ObjC_Bool
> It appears the the compiler is always clearing the entire register to 
> pass the paramater. No matter _Bool or BOOL (signed char).
> No special treatment for _Bool.

A single test program compiled at a single optimization level does not 
demonstrate how a particular compiler generates code in all possible 
situations. In addition, the ABI specification trumps a particular 
compiler's implementation in any case.


Jonas



More information about the fpc-devel mailing list