views:

69

answers:

1

Visual C++ has function-level linking. Looks like it's a great thing - it can reduce the size of generated executables.

Does it have any negative effects? Will I have to pay anything for the advantages of this option or can I just turn it on and enjoy the benefits?

+2  A: 

Actually, there could be some small increase of compilation time. I don't think that it can affect negativily anything else.

Vladimir
Correct, especially in combination with /OPT:REF. The linker will need to consider for each function whether it's used. That's not free.
MSalters