2010-04-15 18:33:04 -07:00
|
|
|
@echo off
|
2013-07-29 21:51:13 -07:00
|
|
|
set FILTER=cat
|
2010-04-15 18:33:04 -07:00
|
|
|
if /i "%1"=="64" (
|
|
|
|
set OPT2=-DXBYAK64
|
|
|
|
set OPT3=win64
|
|
|
|
) else (
|
2010-06-01 00:28:14 -07:00
|
|
|
set OPT2=-DXBYAK32
|
2010-04-15 18:33:04 -07:00
|
|
|
set OPT3=win32
|
|
|
|
)
|
|
|
|
|
|
|
|
pushd ..\gen
|
|
|
|
call update
|
|
|
|
popd
|
|
|
|
|
|
|
|
if /i "%1"=="64" (
|
|
|
|
call :sub 1
|
|
|
|
call :sub 2
|
|
|
|
) else (
|
|
|
|
call :sub 1
|
|
|
|
)
|
|
|
|
goto end
|
|
|
|
|
|
|
|
:sub
|
2010-06-01 00:28:14 -07:00
|
|
|
echo cl address.cpp %OPT% %OPT2%
|
2010-04-15 18:33:04 -07:00
|
|
|
cl address.cpp %OPT% %OPT2%
|
|
|
|
address %1% > a.asm
|
2010-06-01 00:28:14 -07:00
|
|
|
echo nasm -f %OPT3% -l a.lst a.asm
|
2010-04-15 18:33:04 -07:00
|
|
|
nasm -f %OPT3% -l a.lst a.asm
|
2013-07-29 21:51:13 -07:00
|
|
|
awk "{if (index($3, ""-"")) { conti=substr($3, 0, length($3) - 1) } else { conti = conti $3; print conti; conti = """" }} " < a.lst |%FILTER% > ok.lst
|
2010-06-01 00:28:14 -07:00
|
|
|
echo address %1% jit > nm.cpp
|
2010-04-15 18:33:04 -07:00
|
|
|
address %1% jit > nm.cpp
|
2010-06-01 00:28:14 -07:00
|
|
|
echo cl -I../ -DXBYAK_TEST nm_frame.cpp %OPT% %OPT2%
|
|
|
|
cl -I../ -DXBYAK_TEST nm_frame.cpp %OPT% %OPT2%
|
2010-04-15 18:33:04 -07:00
|
|
|
nm_frame > x.lst
|
|
|
|
diff x.lst ok.lst
|
|
|
|
wc x.lst
|
|
|
|
|
|
|
|
:end
|