Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
/Gy - Enable Function-Level Linking
Collapse the table of content
Expand the table of content

/Gy - Enable Function-Level Linking (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This option enables linking on a function-by-function basis by creating packaged functions. A packaged function is visible to the linker in the form of a COMDAT record.

Packaged functions have several uses:

  • Placing packaged functions in a specified order in the executable file by using a FUNCTIONS statement in a module-definition (.DEF) file
  • Assigning individual packaged functions to a specified segment by using a FUNCTIONS statement
  • Placing individual packaged functions in a specified overlay in an MS-DOS program by using a FUNCTIONS statement

For C++, member functions are automatically packaged; other functions are not and /Gy is required to compile them as packaged functions.

See Also

Compiler Options

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.

© 2015 Microsoft