News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Does UASM support COMDAT?

Started by 2B||!2B, May 14, 2020, 01:22:16 PM

Previous topic - Next topic

2B||!2B

Is it supported? if so, how can i remove unreferenced functions?

johnsa

It can generate COMDAT sections yes.
What is not supported yet is an equivalent to /Gy to put each item in it's own COMDAT section to allow a linker to prune redundant content (or handle merging).

Under Windows / MS Link however you should be able to remove unused functions with /OPT:REF

2B||!2B

#2
Thanks for help. I tried that /OPT:REF but it doesn't remove unrefrenced functions of MASM. I think because all functions are combined into a single .obj file.
Is this a feature that can be added in future for UASM?


2B||!2B

Thank you for the great work you are doing on this assembler  :thup: