; RConfig Test Script #3a

if not exists rlib:
    echo "RConfig Library Source Not Found"
    quit
endif

; Generate Replacement Library
cc RLIB:rlib.c -iRLIB: -oT:rlib.o -d__STKCHK_REPLACE -dSTKCHK_MIN_STACK=2768 -d__BETTER_STKCHK -m0d -pl -sa -s0b -sf -sm -ss -sp -sn -r04 -r06 -sr
lb rlib.lib T:rlib.o

; Make Test Program
cc -bd -bs -at test3a.c
stkchker test3a.asm
as test3a.asm
ln test3a.o rlib.lib -lc

; Set-up Test Environment
stack 4000
test3a
