reflection / D's function calling convention?

Wolfgang Draxinger wdraxinger at darkstargames.de
Tue Nov 14 05:27:57 PST 2006


Thomas Kuehne wrote:

> Is D's functions calling convention somewhere documented?
> 
> I've been tinkering with a reflection module for D.
> Gaining access to all dynamic and static symbols is
> currently possible as well as calling C functions
> (see below) but calling functions with D linkage isn't
> yet implemented:

I'm currently working on a preliminary ABI, plattform neutral ABI
for D. Plattform neutral in the sense, that everything that is
plattform related is expressed by reference to additional
plattform specific structured. This ABI also differentiates
between compile time, linkage time and runtime level, which is
IMHO required to get reflection and introspection done in a
elegant way. Along with that I'm also working on a fork of the
GDC compiler and a custom set ot GNU binutils that follow that
ABI. The ABI itself is binary format neutral, though I'm also
working on a special version of the ELF format optimized for
that ABI, which uses DWARF to store reflection and introspection
information, instead of placing that in a additional .data
section.

I hope to have a relase candidate in late December.

Wolfgang Draxinger
-- 
E-Mail address works, Jabber: hexarith at jabber.org, ICQ: 134682867




More information about the Digitalmars-d mailing list