I had to remove under the Linux section of the makefile the -ldl library as there isn't a TDM-GCC equivalent. It compiled but not generating 64 bit numbers.
C:\tinyscheme-master\src>mingw32-make -B
gcc -fpic -pedantic -I. -c -g -Wno-char-subscripts -O -DUSE_STRLWR=0 -DUSE_DL=1 -DUSE_MATH=1 -DUSE_ASCII_NAMES=0 scheme.c
scheme.c: In function 'alloc_cellseg':
scheme.c:584:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if(((unsigned long)cp)%adj!=0) {
^
scheme.c:585:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
cp=(char*)(adj*((unsigned long)cp/adj+1));
^
scheme.c:585:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
cp=(char*)(adj*((unsigned long)cp/adj+1));
^
gcc -fpic -pedantic -I. -c -g -Wno-char-subscripts -O -DUSE_STRLWR=0 -DUSE_DL=1 -DUSE_MATH=1 -DUSE_ASCII_NAMES=0 dynload.c
dynload.c: In function 'scm_load_ext':
dynload.c:108:33: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic]
*(void **)&module_init = dl_proc(dll_handle, init_fn);
^
gcc -shared -o libtinyscheme.dll scheme.o dynload.o -lm
ar crs libtinyscheme.a scheme.o dynload.o
gcc -fpic -pedantic -o scheme -g -Wno-char-subscripts -O scheme.o dynload.o -lm
C:\tinyscheme-master\src>dir
Volume in drive C has no label.
Volume Serial Number is 0C51-A073
Directory of C:\tinyscheme-master\src
09/08/2014 03:06 PM <DIR> .
09/08/2014 03:06 PM <DIR> ..
03/29/2014 08:33 AM 4,062 BUILDING
03/29/2014 08:33 AM 14,636 CHANGES
03/29/2014 08:33 AM 1,548 COPYING
03/29/2014 08:33 AM 3,324 dynload.c
03/29/2014 08:33 AM 281 dynload.h
09/08/2014 03:06 PM 11,003 dynload.o
03/29/2014 08:33 AM 10,490 hack.txt
03/29/2014 08:33 AM 24,511 init.scm
09/08/2014 03:06 PM 258,116 libtinyscheme.a
09/08/2014 03:06 PM 386,666 libtinyscheme.dll
09/08/2014 03:05 PM 1,995 makefile
03/29/2014 08:33 AM 17,238 Manual.txt
03/29/2014 08:33 AM 3,714 MiniSCHEMETribute.txt
03/29/2014 08:33 AM 797 mk_init_scm.scm
03/29/2014 08:33 AM 976 msvcbuild.bat
03/29/2014 08:33 AM 22,867 opdefines.h
03/29/2014 08:33 AM 5,103 scheme-private.h
03/29/2014 08:33 AM 149,655 scheme.c
09/08/2014 03:06 PM 397,031 scheme.exe
03/29/2014 08:33 AM 7,327 scheme.h
09/08/2014 03:06 PM 245,757 scheme.o
21 File(s) 1,567,097 bytes
2 Dir(s) 123,526,754,304 bytes free
C:\tinyscheme-master\src>scheme
TinyScheme 1.41
ts> (load "king.scm")
Loading king.scm
The reward of the King
----------------------
field 1 number of grains 1
field 2 number of grains 2
field 3 number of grains 4
field 4 number of grains 8
field 5 number of grains 16
field 6 number of grains 32
field 7 number of grains 64
field 8 number of grains 128
field 9 number of grains 256
field 10 number of grains 512
field 11 number of grains 1024
field 12 number of grains 2048
field 13 number of grains 4096
field 14 number of grains 8192
field 15 number of grains 16384
field 16 number of grains 32768
field 17 number of grains 65536
field 18 number of grains 131072
field 19 number of grains 262144
field 20 number of grains 524288
field 21 number of grains 1048576
field 22 number of grains 2097152
field 23 number of grains 4194304
field 24 number of grains 8388608
field 25 number of grains 16777216
field 26 number of grains 33554432
field 27 number of grains 67108864
field 28 number of grains 134217728
field 29 number of grains 268435456
field 30 number of grains 536870912
field 31 number of grains 1073741824
field 32 number of grains -2147483648
field 33 number of grains 0
field 34 number of grains 0
field 35 number of grains 0
field 36 number of grains 0
field 37 number of grains 0
field 38 number of grains 0
field 39 number of grains 0
field 40 number of grains 0
field 41 number of grains 0
field 42 number of grains 0
field 43 number of grains 0
field 44 number of grains 0
field 45 number of grains 0
field 46 number of grains 0
field 47 number of grains 0
field 48 number of grains 0
field 49 number of grains 0
field 50 number of grains 0
field 51 number of grains 0
field 52 number of grains 0
field 53 number of grains 0
field 54 number of grains 0
field 55 number of grains 0
field 56 number of grains 0
field 57 number of grains 0
field 58 number of grains 0
field 59 number of grains 0
field 60 number of grains 0
field 61 number of grains 0
field 62 number of grains 0
field 63 number of grains 0
field 64 number of grains 0
C:\tinyscheme-master\src>