The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: marco_xx on February 25, 2007, 06:33:18 PM

Title: link.exe VS polink.exe ?? confueses me
Post by: marco_xx on February 25, 2007, 06:33:18 PM
Hi,


whats the difference between polink and link?
Title: Re: link.exe VS polink.exe ?? confueses me
Post by: PBrennick on February 25, 2007, 07:37:20 PM

polink creates smaller executables because of the way sections are handled. They both do an adequate job, however. Personally, I do not care for after market tools. My feeling is that even though polink creates a smaller executable, the savings is negligible. link.exe is a proven workhorse that has been around for years.

Paul
Title: Re: link.exe VS polink.exe ?? confueses me
Post by: Vortex on February 25, 2007, 09:09:38 PM
As Paul said, Polink creates smaller executables. The author Pelle Orinius maintains the tool regularly and it's free to use for developing commercial applications.
Title: Re: link.exe VS polink.exe ?? confueses me
Post by: ic2 on February 27, 2007, 02:38:34 PM
If you assemble a file no matter what size clicking Assemble & Link when using MASM and do the same thing with POASM it will assemble to the exact same size every time to the letter.  I never checked when using resource files with icons and such because i don't use them.  I check file size everyday as i build, so i know that this is a fact.  A-LINK is the only one i found that will produce an smaller executable.  Create a filesize checker program for your main file than you will see.

I attached a small file that i use and will save you little time.

[attachment deleted by admin]
Title: Re: link.exe VS polink.exe ?? confueses me
Post by: PBrennick on February 27, 2007, 03:18:53 PM
You are mistaken. The topic makes no reference to masm or poasm. We are talking about the linkers, ONLY.

Paul
Title: Re: link.exe VS polink.exe ?? confueses me
Post by: lingo on February 27, 2007, 04:25:17 PM
ic2,
May be Pelle and  other authors maintain their tools
regularly, but I can't compare their efforts and knowledge
against those of the giant and monopolist as MS
MS dictate and change the rules and formats too,
hence I'm not sure that it is SAFE to produce smaller executable..
so, stop the emotions and let us be rational... :wink

Regards,
Lingo
Title: Re: link.exe VS polink.exe ?? confueses me
Post by: Vortex on February 27, 2007, 06:15:33 PM
ic2,

Alink is a nice tool but does not handle static libraries. Link and Polink both are capable of processing static libraries.
Title: Re: link.exe VS polink.exe ?? confueses me
Post by: u on February 28, 2007, 04:32:55 PM
PoLink is fine, it handles my bigger asm projects (usually consisting of dozens of .libs, altogether 150k+ lines) as well as Link.
Meanwhile, Link does have some hidden bugs, which are solved when I recompile and pack all the .libs.
Title: Re: link.exe VS polink.exe ?? confueses me
Post by: Vortex on February 28, 2007, 07:01:27 PM
Hi Ultrano,

Could you describe those hidden bugs? Is there any way to fix them?
Title: Re: link.exe VS polink.exe ?? confueses me
Post by: u on February 28, 2007, 07:29:19 PM
They happened rarely and randomly:
lib1-21 know of the existence of several public procs in lib22, but never use them.
I move these procs or modify their parameters, and modify the .inc files to match. Logic dictates that libs1-21 won't care, but it happens that my .exe is corrupted in a place or two. So, what happens is ghost-bugs that appear in my app - it crashes or stalls inexplainably. When I recompile all 22 libs twice (in two passes), and link everything - the unmodified code works. (by "unmodified" I mean, that I don't change anything in the code, that on the previous link crashed) .
At some time I found a way to reproduce it, and tested it against PoLink - polink handled it correctly.

But since the beginning I've been doing something I shouldn't: putting often-modified code in libs before using it ^^"
Title: Re: link.exe VS polink.exe ?? confueses me
Post by: PBrennick on February 28, 2007, 09:18:34 PM
A transient bug can be very frustrating, I have found some in masm, also. I am glad you were able to get a successful compile.

Paul