News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

New "makeit.bat" for the MASM64 Library

Started by hutch--, May 23, 2019, 05:06:52 AM

Previous topic - Next topic

hutch--

I found a silly problem with the library build, it was cutting off the last module and did not build it. I don't know whether its a file count limit in ml64 but I could not be bothered debugging it so I wrote a new batch file to do the task. With thanks to Erol for the original idea, the following is the new batch file.

: ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

@echo off

: delete any existing library
  if exist m64lib.lib del m64lib.lib

: assemble modules
  for %%x in (*.asm) do \masm32\bin64\ml64 /c /nologo %%x

: redirect object files into a response file
  dir /b *.obj > obj.txt

: link the object modules into a library
  \masm32\bin64\lib /MACHINE:X64 /OUT:m64lib.lib @obj.txt

: clean up the junk
  del *.obj

: display the library at the console
  dir *.lib                                             

pause

: ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

nidud

#1
deleted

hutch--

I have not seen a MASM version that handles wildcards but they do handle response files. Whatever the limit is, it was dropping the 132nd file name even though it was in the response file so I changed the way the library is built so that I can keep adding modules to the library.

felipe

thanks hutch  :Thmbsup:. So you will put this bat file in the zip folder of the masm64 package?

hutch--

Just replace the batch file of the same name in the m64lib directory. The earlier one appeared to run into a limit that is probably set in ml64 for response files. The new one has no limit of files so it can be used for libraries with a much larger module count.

felipe