output.println("BAMBOO_DEBUGPRINT_REG(tmpsum);");
} else {
//output.println("BAMBOO_ENTER_RUNTIME_MODE_FROM_CLIENT();");
- output.println("tprintf(\"Process %x(%d): task %s\\n\", corenum, corenum, \"" + task.getSymbol() + "\");");
+ output.println("printf(\"(%x,%x) Process %x(%d): task %s\\n\", udn_tile_coord_x(), udn_tile_coord_y(), corenum, corenum, \"" + task.getSymbol() + "\");");
//output.println("BAMBOO_ENTER_CLIENT_MODE_FROM_RUNTIME();");
}
//output.println("BAMBOO_DEBUGPRINT(BAMBOO_GET_EXE_TIME());");
output.println("BAMBOO_DEBUGPRINT_REG(tmpsum);");
} else {
//output.println("BAMBOO_ENTER_RUNTIME_MODE_FROM_CLIENT();");
- output.println("tprintf(\"Process %x(%d): task %s\\n\", corenum, corenum, \"" + task.getSymbol() + "\");");
+ output.println("printf(\"(%x,%x) Process %x(%d): task %s\\n\", udn_tile_coord_x(), udn_tile_coord_y(), corenum, corenum, \"" + task.getSymbol() + "\");");
//output.println("BAMBOO_ENTER_CLIENT_MODE_FROM_RUNTIME();");
}
output.println("#endif");
void * allocate_new(void * ptr, int type) {
struct ___Object___ * v=(struct ___Object___ *)FREEMALLOC((struct garbagelist *) ptr, classsize[type]);
#ifdef DEBUG
- tprintf("new object: %x \n", v);
+ printf("(%x,%x): new object: %x \n", udn_tile_coord_x(),
+ udn_tile_coord_y(), v);
#endif
v->type=type;
v->version = 0;
struct ArrayObject * allocate_newarray(void * ptr, int type, int length) {
struct ArrayObject * v=(struct ArrayObject *)FREEMALLOC((struct garbagelist *) ptr, sizeof(struct ArrayObject)+length*classsize[type]);
#ifdef DEBUG
- tprintf("new array object: %x \n", v);
+ printf("(%x,%x): new array object: %x \n", udn_tile_coord_x(),
+ udn_tile_coord_y(), v);
#endif
v->type=type;
v->version = 0;
#define INLINE inline __attribute__((always_inline))
#endif
+#ifndef bool
+#define bool int
+#define true 1
+#define false 0
+#endif
+
////////////////////////////////////////////////////////////////
// global variables //
///////////////////////////////////////////////////////////////
PCIHVC="pci.hvc.$TILERACONFIG"
elif $TILERAZLINUXFLAG
then # TILERAZLINUXFLAG
-TILERA_INDIR="ZLINUX"
+TILERA_INDIR="ZLinux"
MAKEFILE="Makefile.tilera.$TILERACONFIG"
fi
mkdir $TILERADIR
cp ../Tilera/Runtime/*.h ./
cp ../Tilera/Runtime/$TILERA_INDIR/*.c ./
cp ../Tilera/Runtime/$TILERA_INDIR/*.h ./
+if $TILERAZLINUXFLAG
+then # TILERAZLINUXFLAG
cp ../Tilera/Runtime/$TILERA_INDIR/*.S ./
+fi
cp ../Tilera/lib/* ./
cp ../$tmpbuilddirectory/*.c ./
cp ../$tmpbuilddirectory/*.h ./