2010-04-16 01:33:04 +00:00
|
|
|
@echo off
|
|
|
|
set FILTER=cat
|
|
|
|
set Y=0
|
|
|
|
if /i "%1"=="Y" (
|
|
|
|
set Y=1
|
|
|
|
set EXE=yasm.exe
|
|
|
|
set OPT2=-DUSE_YASM -DXBYAK32
|
|
|
|
set OPT3=win32
|
|
|
|
) else if /i "%1"=="64" (
|
|
|
|
set EXE=nasm.exe
|
|
|
|
set OPT2=-DXBYAK64
|
|
|
|
set OPT3=win64
|
|
|
|
set FILTER=normalize_prefix
|
|
|
|
) else if /i "%1"=="Y64" (
|
|
|
|
set Y=1
|
|
|
|
set EXE=yasm.exe
|
|
|
|
set OPT2=-DUSE_YASM -DXBYAK64
|
|
|
|
set OPT3=win64
|
|
|
|
set FILTER=normalize_prefix
|
|
|
|
) else (
|
2010-06-01 07:28:14 +00:00
|
|
|
set EXE=nasm.exe
|
|
|
|
set OPT2=-DXBYAK32
|
2010-04-16 01:33:04 +00:00
|
|
|
set OPT3=win32
|
|
|
|
)
|
|
|
|
pushd ..\gen
|
|
|
|
call update
|
|
|
|
popd
|
|
|
|
echo cl -I../ make_nm.cpp %OPT% %OPT2% /EHs
|
|
|
|
cl -I../ make_nm.cpp %OPT% %OPT2% /EHs
|
|
|
|
make_nm > a.asm
|
2012-10-29 01:13:56 +00:00
|
|
|
rm a.lst
|
|
|
|
echo %EXE% -f %OPT3% -l a.lst a.asm
|
2010-04-16 01:33:04 +00:00
|
|
|
%EXE% -f %OPT3% -l a.lst a.asm
|
|
|
|
rem connect "?????-" and "??"
|
|
|
|
if /i "%Y%"=="1" (
|
|
|
|
awk "NR > 1 {if (index($3, ""-"")) { conti=substr($3, 0, length($3) - 1) } else { conti = conti $3; print conti; conti = """" }} " < a.lst |%FILTER% > ok.lst
|
|
|
|
) else (
|
|
|
|
awk "{if (index($3, ""-"")) { conti=substr($3, 0, length($3) - 1) } else { conti = conti $3; print conti; conti = """" }} " < a.lst |%FILTER% > ok.lst
|
|
|
|
)
|
|
|
|
make_nm jit > nm.cpp
|
2010-06-01 07:28:14 +00:00
|
|
|
cl -I../ -DXBYAK_TEST nm_frame.cpp %OPT% %OPT2%
|
2010-04-16 01:33:04 +00:00
|
|
|
nm_frame |%FILTER% > x.lst
|
|
|
|
diff x.lst ok.lst
|
|
|
|
wc x.lst
|