Hey, just started playing with this library and wanted to document some issues/improvements.
- Shared objects are exporting all symbols, this makes them a lot larger than they need to be.
Ideally non Dart public API symbols will be hidden (by using -fvisibility=hidden for instance).
0000000002580fd0 b _ZZNSt3__212_GLOBAL__N_14makeINS_8time_getIcNS_19istreambuf_iteratorIcNS_11char_traitsIcEEEEEEJjEEERT_DpT0_E3buf
0000000002580ff0 b
-
Debug info could be split from the shared object using -gsplit-dwarf or by running separate commands after build (with strip and objcopy)
-
Missing some include files like dart_tools_api.h, dart_native_api.h, dart_api_dl.h, dart_tools_api.h and dart_version.h
Hey, just started playing with this library and wanted to document some issues/improvements.
Ideally non Dart public API symbols will be hidden (by using
-fvisibility=hiddenfor instance).Debug info could be split from the shared object using
-gsplit-dwarfor by running separate commands after build (withstripandobjcopy)Missing some include files like
dart_tools_api.h,dart_native_api.h,dart_api_dl.h,dart_tools_api.handdart_version.h