Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 4752

Show
Ignore:
Timestamp:
07/02/09 11:43:21 (3 years ago)
Author:
fawzi
Message:

new Atomic module, first version of new runtime building system (works only with ldc for the moment), some reorganizations

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Makefile

    r4743 r4752  
    3434 
    3535 
    36 TANGO_HOME=$(PWD
     36TANGO_HOME=$(shell pwd
    3737TOOLDIR=$(TANGO_HOME)/lib/build/tools 
    3838VERSION=opt 
  • trunk/lib/build-tango.sh

    r4533 r4752  
    149149 
    150150    cd .. 
     151    echo compiler call: $DC $ARCH $WARN -c $INLINE $DEBUG $RELEASE $POSIXFLAG -version=Tango 
    151152 
    152153    for file in `find tango -name '*.d'` 
     
    190191            RELEASE="" 
    191192            ;; 
     193        --test) 
     194            RELEASE="-unittest -d-debug=UnitTest" 
     195#            RELEASE="-release -O -d-debug=UnitTest" 
     196        ;; 
    192197        --noinline) 
    193198            INLINE="" 
  • trunk/lib/build/tools/guessCompiler.sh

    r4693 r4752  
    4040    fi 
    4141elif (which ldc >& /dev/null); then 
    42     if [ 0 -lt $return_path ]; then 
     42    if [ -n "$return_path" ]; then 
    4343        which ldc 
    4444    else 
     
    4646    fi 
    4747elif (which dmd >& /dev/null); then 
    48     if [ 0 -lt $return_path ]; then 
     48    if [ -n "$return_path" ]; then 
    4949        which dmd 
    5050    else 
     
    5252    fi 
    5353elif (which gdc >& /dev/null); then 
    54     if [ 0 -lt $return_path ]; then 
     54    if [ -n "$return_path" ]; then 
    5555        which gdc 
    5656    else 
  • trunk/lib/common/tango/core/Thread.d

    r4730 r4752  
    35823582    } 
    35833583} 
     3584 
     3585extern(C){ 
     3586    void thread_yield(){ 
     3587        Thread.yield(); 
     3588    } 
     3589     
     3590    void thread_sleep(double period){ 
     3591        Thread.sleep(period); 
     3592    } 
     3593} 
  • trunk/lib/common/tango/ldc.mak

    r4750 r4752  
    5151 
    5252OBJ_STDC= \ 
    53     stdc/wrap.o 
     53    ../wrap.o 
    5454#    stdc/wrap.bc 
    5555 
  • trunk/lib/common/tango/posix.mak

    r4549 r4752  
    101101    core/Runtime.o \ 
    102102    core/Thread.o \ 
    103     core/ThreadASM.o 
     103    ../ThreadASM.o 
    104104 
    105105OBJ_STDC= \ 
    106     stdc/wrap.o 
     106    ../wrap.o 
    107107 
    108108OBJ_STDC_POSIX= \ 
  • trunk/lib/common/tango/win32.mak

    r4417 r4752  
    7979 
    8080OBJ_STDC= \ 
    81     stdc\wrap.obj 
     81    ..\wrap.obj 
    8282 
    8383ALL_OBJS= \ 
  • trunk/lib/compiler/ldc/OBJECTDEFS.inc

    r4740 r4752  
    44 
    55OBJ_C= \ 
    6     rt/critical.obj \ 
    7     rt/monitor.obj \ 
    8     rt/cConst.obj 
     6    critical.obj \ 
     7    monitor.obj \ 
     8    cConst.obj 
    99 
    1010OBJ_BASE= \ 
  • trunk/lib/compiler/ldc/rt/cInterface.d

    r4632 r4752  
    55 + Fawzi Mohamed 
    66 +/ 
    7  
     7module rt.cInterface; 
    88 
    99// rt.lifetime 
  • trunk/lib/dmd-posix.mak

    r4541 r4752  
    8181    find . -name "libphobos*.a" | xargs $(RM) 
    8282    $(RM) $@ 
    83     $(LC) $@ `find $(DIR_CC) -name "*.o" | xargs echo` 
     83    $(LC) $@ `find $(DIR_CC)/.. -name "*.o" | xargs echo` 
    8484    $(LC) $@ `find $(DIR_RT) -name "*.o" | xargs echo` 
    8585    $(LC) $@ `find $(DIR_RT2) -name "*.o" | xargs echo` 
  • trunk/lib/gc/basic/ldc.mak

    r4750 r4752  
    2626 
    2727include ../../ldcCommonFlags.mak 
     28 
     29vpath %d rt/basicgc 
    2830 
    2931LIB_DEST=.. 
  • trunk/lib/gc/basic/posix.mak

    r4541 r4752  
    4141TFLAGS=$(TFLAGS_RELEASE) 
    4242endif 
     43 
     44vpath %d rt/basicgc 
    4345 
    4446CC=gcc 
  • trunk/lib/gc/basic/rt/basicgc/gc.d

    r4384 r4752  
    2424 * Authors:   Walter Bright, Sean Kelly 
    2525 */ 
    26  
    27 private import gcx; 
    28 private import gcstats; 
     26module rt.basicgc.gc; 
     27 
     28private import rt.basicgc.gcx; 
     29private import rt.basicgc.gcstats; 
    2930private import tango.stdc.stdlib; 
    3031 
  • trunk/lib/gc/basic/rt/basicgc/gcalloc.d

    r3349 r4752  
    2424 * Authors:   Walter Bright, David Friedman, Sean Kelly 
    2525 */ 
    26  
     26module rt.basicgc.gcalloc; 
    2727 
    2828version (Win32) 
     
    175175 
    176176 
    177     private import gcx; // for PAGESIZE 
     177    private import rt.basicgc.gcx; // for PAGESIZE 
    178178 
    179179 
  • trunk/lib/gc/basic/rt/basicgc/gcbits.d

    r4172 r4752  
    2424 * Authors:   Walter Bright, David Friedman, Sean Kelly 
    2525 */ 
    26  
     26module rt.basicgc.gcbits; 
    2727 
    2828private import tango.core.BitManip; 
     29//private import rt.cImports: memset, memcpy, free, calloc; 
    2930private import tango.stdc.string; 
    3031private import tango.stdc.stdlib; 
  • trunk/lib/gc/basic/rt/basicgc/gcstats.d

    r1856 r4752  
    2424 * Authors:   Walter Bright, Sean Kelly 
    2525 */ 
    26  
     26module rt.basicgc.gcstats; 
    2727 
    2828/** 
  • trunk/lib/gc/basic/rt/basicgc/gcx.d

    r4605 r4752  
    2424 * Authors:   Walter Bright, David Friedman, Sean Kelly 
    2525 */ 
    26  
     26module rt.basicgc.gcx; 
    2727// D Programming Language Garbage Collector implementation 
    2828 
     
    4747/***************************************************/ 
    4848 
    49 private import gcbits; 
    50 private import gcstats; 
    51 private import gcalloc; 
     49private import rt.basicgc.gcbits; 
     50private import rt.basicgc.gcstats; 
     51private import rt.basicgc.gcalloc; 
    5252 
    5353private import cstdlib = tango.stdc.stdlib : calloc, free, malloc, realloc; 
  • trunk/lib/gc/basic/win32.mak

    r4417 r4752  
    6868 
    6969ALL_OBJS= \ 
    70     gc.obj \ 
    71     gcalloc.obj \ 
    72     gcbits.obj \ 
    73     gcstats.obj \ 
    74     gcx.obj 
     70    rt/basicgc/gc.obj \ 
     71    rt/basicgc/gcalloc.obj \ 
     72    rt/basicgc/gcbits.obj \ 
     73    rt/basicgc/gcstats.obj \ 
     74    rt/basicgc/gcx.obj 
    7575 
    7676###################################################### 
  • trunk/lib/gdc-posix.mak

    r4400 r4752  
    4646    $(LC) libgphobos.a `find ./compiler/shared -name "*.o" | xargs echo` 
    4747    $(LC) libgphobos.a `find ./gc/basic -name "*.o" | xargs echo` 
    48     $(LC) libgphobos.a `find ./common/tango -name "*.o" | xargs echo` 
     48    $(LC) libgphobos.a `find ./common -name "*.o" | xargs echo` 
    4949 
    5050doc : $(ALL_DOCS) 
  • trunk/lib/ldc-posix.mak

    r4579 r4752  
    6565                VERSION="$(VERSION)" LIB_BUILD="$(LIB_BUILD)" SHARED="$(SHARED)" 
    6666    $(RM) $@ 
    67     $(LC_CMD) $@ `find $(DIR_CC) -name "*.o" | xargs echo` 
     67    $(LC_CMD) $@ `find $(DIR_CC)/.. -name "*.o" | xargs echo` 
    6868    $(LC_CMD) $@ `find $(DIR_RT) -name "*.o" | xargs echo` 
    6969    $(LC_CMD) $@ `find $(DIR_RT2) -name "*.o" | xargs echo`