Hi Ketil,

I want to add a selection to the default make menu for GoAsm, I need an extra link command that will link using the /unsed switch. This tells the linker to perform essentially the same task as Collake's AsmVars but directly in GoLink when using GoAsm object files. What I would like to do is this...

[Project]

Type=Win32 App,Win9x Unicode,Win32 App (no res),DLL,Console
Files=Asm,Inc,Txt,Rc,Def
Folders=Bak,Mod,Res
MenuMake=Compile RC,Assemble,Link,Build,Go,Run,Run w/Debug,Go All,Assemble Modules,Show unused

[Win32 App]
Files=1,1,0,1,0
Folders=1,0,1
MenuMake=1,1,1,1,1,1,1,0,1,1
;x=FileToDelete/CheckExistsOnExit,
;(O)utput/(C)onsole/0,Command,
;MakeFile1[,MakeFile2[,MakeFile3...]]
1=4,O,$B\GORC.EXE /r,1
2=3,O,$B\GoAsm.EXE,2
3=5,O,$B\GoLink.EXE @$B\GFL.txt /entry Start ,3,4
4=0,0,,5
5=
6=*.obj,O,$B\GoAsm.EXE,*.asm
7=0,0,\GoAsm\GoBug\GoBug,5
8=5,O,$B\GoLink.EXE @$B\GFL.txt /unused /entry Start ,3,4

11=4,O,$B\GORC.EXE /r,1
12=3,O,$B\GoAsm.EXE,2
13=5,O,$B\GoLink.EXE @$B\GFL.txt /debug coff /entry Start ,3,4
14=0,0,,5
15=
16=*.obj,O,$B\GoAsm.EXE,*.asm
17=0,0,\GoAsm\GoBug\GoBug,5
18=5,O,$B\GoLink.EXE @$B\GFL.txt /debug coff /unused /entry Start ,3,4


But the Show unused option appears in the Wizard but not on the Make menu. I can check it but I cannot use it. Is this possible or do I have to do it on a per-project basis by inserting it into the menu each time with cmd # 8.
Posted on 2003-12-06 10:49:20 by donkey
Hi Ketil,

Sorry, forgot to add it to my mistake, it works fine...

[MenuMake]

1=&Compile RC,55,M,1
2=&Assemble,31,M,2
3=&Link,92,M,3
4=&Build,103,M,2,3
5=-,0,M,
6=&Go,43,M,2,3,4
7=-,0,M,
8=&Run,67,M,4
9=Run w/&Debug,0,M,7
10=-,0,M,
11=Go &All,79,M,1,2,3,4
12=-,0,M,
13=Assemble &Modules,0,M,6
14=Show Unused,0,M,8
Posted on 2003-12-06 11:52:49 by donkey
Here is my new GoAsm.ini file, it has a new project type (Console apps) and also adds the /unused link switch to the Make menu. If you want to use Unused, you must first assemble the project using GoAsm (no other object type will work) then use the new menu item, it will output a list of unused labels and variables to Output window 1. This is a standard feature of GoLink and works very well, it makes an excellent replacement for AsmVars used in MASM.
Posted on 2003-12-06 12:57:13 by donkey