Fast-CDR icon indicating copy to clipboard operation
Fast-CDR copied to clipboard

Add GCC support for compiling with hidden visibility

Open roehling opened this issue 5 years ago • 2 comments

GCC hidden visibility closely mimics the Windows DLL import/export feature, which cleans up the symbol export table and leads to faster startup times as well as a more stable ABI.

This PR has no immediate effect until GCC is instructed to hide symbols with -fvisibility=hidden -fvisibility-inlines-hidden. I did not enable this yet because unlike MSVC, GCC does not export type info and vtables by default, so this PR depends on #88 to work.

Signed-off-by: Timo Röhling [email protected]

roehling avatar Nov 24 '20 10:11 roehling

Build status:

  • Linux Build Status
  • Linux aarch64Build Status
  • Mac Build Status
  • Windows Build Status

richiware avatar Nov 24 '20 10:11 richiware

Build status:

  • Linux Build Status
  • Linux aarch64Build Status
  • Mac Build Status
  • Windows Build Status

richiprosima avatar Feb 10 '21 11:02 richiprosima

I'm closing this, as we will not be tackling it at the moment. I have open #149 to track these ideas, suggestions and comments are most welcomed!

EduPonz avatar Jun 08 '23 08:06 EduPonz