Will the D GC be awesome?

Paulo Pinto pjmlp at progtools.org
Wed Oct 10 06:50:37 PDT 2012


On Wednesday, 10 October 2012 at 12:29:19 UTC, Marco Leise wrote:
> Am Thu, 04 Oct 2012 15:27:58 +0200
> schrieb Alex Rønne Petersen <alex at lycus.org>:
>
>> On 04-10-2012 15:21, Piotr Szturmaj wrote:
>> > Jacob Carlborg wrote:
>> > […]
>> > * For other struct sizes, the return value is stored through 
>> > a hidden
>> > pointer passed as an argument to the function.
>> 
>> I strongly advise ignoring the D calling convention. Only DMD 
>> implements it and nowhere else than on Windows for 32-bit x86.
>> 
>> Instead, refer to the Windows and System V x86 ABIs.
>
> The hidden pointer is exactly what I see MSVC++ produce for
> struct returns (but even for 4 byte ones). e.g. "MyStruct
> foo()" is equivalent to "foo(MyStruct&)"
> I understand that the GCC people don't want to add YACC (yet
> another calling-convention), but frankly Pascal got away with
> a c-c of its own, too and I never heard anyone complain.

Because many moons ago people did use Pascal dialects for systems 
programming, and thanks to it, the Pascal calling convention 
earned its place in the land of operating systems calling 
conventions.


--
Paulo


More information about the Digitalmars-d mailing list