Hi all,

So far I've been able to build YHI under the ARM7 toolchain (with a target size of 148KB) after making several small changes: In particular I have removed all directory related primitive functions from Sytem.c and WrapPrimitive, commented out threading code for locks, mutexes, and semaphores, removed thread.c, and also removed all expensive printf statements (can't use printf on target). Also Platform.h - #define NO_LIBFFI and NO_LIBGMP have been selected and - #define NO_SHARED has been selected

So far this all compiles fine, and will fit into ROM but I have yet to test it...I would like to figure out what else I can skim...I really want to be able to run it from RAM (64KB) eventually.

My question at the moment is whether I can remove stuff like pretty.c, and sanity.c (and possibly jonkers) without having a major breakdown of the system.

TARGET := yhi_nxt

C_VM_SOURCES := \
    $(VM_DIR)/main.c \
    $(VM_DIR)/basepath.c \
    $(VM_DIR)/foreign.c \
    $(VM_DIR)/heap.c \
    $(VM_DIR)/info.c \
    $(VM_DIR)/iofuncs.c \
    $(VM_DIR)/mark.c \
    $(VM_DIR)/mutator.c \
    $(VM_DIR)/primitive.c \
    $(VM_DIR)/profile.c \
    $(VM_DIR)/stable.c \
    $(VM_DIR)/external.c \
    $(VM_DIR)/hashtable.c \
    $(VM_DIR)/hsffi.c \
    $(VM_DIR)/integer.c \
    $(VM_DIR)/jonkers.c \
    $(VM_DIR)/make.c \
    $(VM_DIR)/module.c \
    $(VM_DIR)/pretty.c \
    $(VM_DIR)/process.c \
    $(VM_DIR)/sanity.c \
    $(VM_DIR)/stopcopy.c \
    $(VM_DIR)/Array.c \
    $(VM_DIR)/Concurrent.c \
    $(VM_DIR)/FFI.c \
    $(VM_DIR)/IO.c \
    $(VM_DIR)/IORef.c \
    $(VM_DIR)/PackedString.c \
    $(VM_DIR)/Prelude.c \
    $(VM_DIR)/RuntimeAPI.c \
    $(VM_DIR)/WrapPrimitive.c \
    $(VM_DIR)/System.c \

Thanks,
--
</Alexis>