[fpc-pascal] return 8 byte of return as function result via register

Michael Schnell mschnell at lumino.de
Mon Sep 15 11:03:23 CEST 2014


On 09/13/2014 12:59 AM, Dennis Poon wrote:
> I am trying to use an external C++ dll
Usually you can't use (pure) C++ DLLs. DLLS need to have a "flat" (ANSI 
C) interface using standard data types and calling conventions.

I suppose with x86/64 the return value in fact is 8 bytes in a single 
register.

AFAIK, with X86/32 there is no single register with 8 bytes.

-Michael



More information about the fpc-pascal mailing list