> I want to pass them to libraries later loaded into the application. > If the global is not used, would the linker be able to optimize > the global out and in turn optimize the function out again ?
Potentially, but the fix is fairly simple. Create a global that holds pointers to the functions. Have the code that wants to pass pointers to those functions read the pointers from that global. However, this begs the question of why the part of your code that currently tries to pass the function pointers isn't being recognised as referring to the functions in question. How does that code work? -- John Dallman ----------------- Siemens Industry Software Limited is a limited company registered in England and Wales. Registered number: 3476850. Registered office: Faraday House, Sir William Siemens Square, Frimley, Surrey, GU16 8QD.
_______________________________________________ cfe-users mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users
