C:\test\perllVm>dir
02/09/2012 04:04 331 Ack.pl
02/09/2012 22:10 1,863 build.cmd
02/09/2012 23:12
dll
02/09/2012 03:29 23,359 perldll.def
02/09/2012 05:01 src
C:\test\perllVm>cd dll
C:\test\perllVm\dll>set opts=-c -fno-caret-diagnostics -fno-color-diagnostics
C:\test\perllVm\dll>set warn=-Wno-unused-value -Wno-deprecated-declarations -Wno-parentheses -Wno-deprecated-writable-strings
C:\test\perllVm\dll>set defs=-DWIN32 -DWIN64 -DPERLDLL -DPERL_CORE -DPERL_IMPLICIT_SYS
C:\test\perllVm\dll>set srcs=av.c deb.c doio.c doop.c dump.c DynaLoader.c fcrypt.c globals.c gv.c hv.c keywords.c locale
.c mathoms.c mg.c mro.c numeric.c op.c pad.c perl.c perlapi.c perlio.c perllib.cpp perly.c pp.c pp_ctl.c pp_hot.c pp_pac
k.c pp_sort.c pp_sys.c reentr.c regcomp.c regexec.c run.c scope.c sv.c taint.c toke.c universal.c utf8.c util.c win32.c
Win32CORE.c win32io.c win32sck.c win32thread.c
C:\test\perllVm\dll>set libs=ws2_32.lib user32.lib ComCtl32.Lib AdvAPI32.Lib
C:\test\perllVm\dll>\llvm\clang.exe -m64 -I ..\src %opts% %warn% %defs% %srcs%
In file included from sv.c:41:
./stdint.h:197:9: warning: 'INT64_C' macro redefined
..\src/handy.h:204:28: note: previous definition is here
In file included from sv.c:41:
./stdint.h:202:9: warning: 'UINT64_C' macro redefined
..\src/handy.h:205:28: note: previous definition is here
win32.c:1925:30: warning: format specifies type 'int' but the argument has type 'DWORD' (aka 'unsigned long') [-Wformat]
win32.c:1925:33: warning: format specifies type 'int' but the argument has type 'DWORD' (aka 'unsigned long') [-Wformat]
win32.c:1929:36: warning: format specifies type 'int' but the argument has type 'DWORD' (aka 'unsigned long') [-Wformat]
win32.c:1977:41: warning: format specifies type 'unsigned int' but the argument has type 'DWORD' (aka 'unsigned long') [-Wformat]
C:\test\perllVm\dll>dir /b *.o
av.o deb.o doio.o doop.o dump.o DynaLoader.o fcrypt.o globals.o gv.o hv.o keywords.o locale.o mathoms.o mg.o mro.o
numeric.o op.o pad.o perl.o perlapi.o perlio.o perllib.o perly.o pp.o pp_ctl.o pp_hot.o pp_pack.o pp_sort.o pp_sys.o
reentr.o regcomp.o regexec.o run.o scope.o sv.o taint.o toke.o universal.o utf8.o util.o win32.o Win32CORE.o win32io.o
win32sck.o win32thread.o
C:\test\perllVm\dll>link /verbose:lib /dll /noentry /out:..\perl516.dll -def:..\perldll.def *.obj /libpath %libs% | wc -l
1796