Shared lib support for Linux

Kagamin spam at here.lot
Tue Mar 22 01:55:01 PDT 2011


Long Chang Wrote:

> Hello ,
> 
> The DMD will support shared lib for linux in future,  But I wan't to
> know when this can be completed .
> 
> I am try use GDC build libgdruntime.a with -fPIC,  and catch some
> error I can't fix it .
> 
> for example:
> ../../../../libphobos/rt/arraybyte.d
> ../../../../libphobos/rt/arraybyte.d: In function
> ‘_arraySliceExpAddSliceAssign_g’:
> ../../../../libphobos/rt/arraybyte.d:220: error: PIC register ‘ebx’
> clobbered in ‘asm’
> 
> If Druntime team can help GDC team fix this issue will be great .
> 
> 
> Kind Regards / Long Chang

                mov ESI, aptr;
                mov EDI, bptr;
                mov CL, value;

                align 4;
            startadd386:
                add ESI, 4;
                mov DX, [EDI];
                mov AX, [EDI+2];
                add EDI, 4;
                add AL, CL;
                add AH, CL;
                add DL, CL;
                add DH, CL;
                mov [ESI   -4], DX;
                mov [ESI+2 -4], AX;
                cmp ESI, n;
                jb startadd386;

                mov aptr, ESI;
                mov bptr, EDI;

though the function looks buggy.


More information about the Digitalmars-d mailing list