Download WINDOWS ASSEMBLY LANGUAGE & SYSTEMS PROGRAMMING
Transcript
316 Windows Assembly Language CC Systems Programming !if $d(MAKEDIR) IMP=$(MAKEDIR)\..\lib\import32 !else IMP=import32 !endif $(FN) .EXE: $(OBJS) $(DEF) tlink32 /Tpe /aa /c $(LNKDBG) $(oBJs),$(FN),,$(IMP),S(DEF),S(FN) .asm.obj: tasm32 $(TASMDEBUG) /ml $&.asm brc32 -r $(FN).rc In the above Make file, you can see the invocation of BRC32.EXE. It is used with a “-I+’ switch to mean compile only, which is probably optional. Binding resources to the executable In earlier examples, I have run RC.EXE again after LINK, to bind the RES file to the .EXE tile. However, TLINK32 does this automatically if the name of the RES file is appended onto the end of the command line. The last $(FN) achieves this. Compatibility I have a lot of trouble with Borland Make tiles. Although there is of Bar/and & a switch for setting compatibility with Microsoft’s NMAKE.EXE, it is still not compatible. I have never been able to get a Make file MicrosotY I have created for NMAKE to work with Borland’s MARE. Make files I have to resort to taking an example Make file provided by Borland, which is what I have done above. It is not quite optimum, as the resource compiler executes every time, but at least it works. I recommend that you use the ” -B" switch to force everything to build: C:\> make -B -DDEBUG There is something weird about Borland’s MAKE.EXE and I personally use NMAKE.EXE mostly. B3ZTOOLS.PIE to fine-tune the DOS box Note also that Borland supplies B32TOOLS.PIF. I recommend that you put a shortcut to it from your Windows 95 desktop. It has the correct settings for the DOS box. You will find it in C:\TASMBIN. Also, place C:\TASMBIN into the path statement of your AUTOEXEC.BAT file, so DOS can find the executables. TLINK32 finds the library tile IMPORT32 without any help. . DEF fife Finally, the definition tile, W32DEMO.DEF: NAME DESCRIPTION W32DEMO 'ASM program'
Related documents
PBS Modelling User's Guide
RFS 700 CTCR-711 User Manual
1 Overview
BUILD THE BOTTOM OF THE FUSELAGE
CC-Link IE Field Network Analog-Digital
1 Kamel Simile Version User`s guide P. Martin, E
Test Communication Managment Unit TCMU
yalst LiveSupportTool User Manual
SingMai Electronics
Audio Plus 3200 V.2 User Manual
Manuel d`utilisation
Manuel d`utilisation