Re: PureBasic 6.20 beta 1 is out !
Posted: Wed Dec 11, 2024 8:20 pm
Sureskywalk wrote: Wed Dec 11, 2024 8:14 pm Will portable installs still support userlibs in the existing parent folder?
http://www.purebasic.com
https://www.purebasic.fr/english/
Sureskywalk wrote: Wed Dec 11, 2024 8:14 pm Will portable installs still support userlibs in the existing parent folder?
Thank you for the good work, PB team.Fred wrote: Wed Dec 11, 2024 5:15 pm - Added: TLS support for Network library (Thanks Idle for the tips) !
GCC has options -ffunction-sections and -fdata-sections https://gcc.gnu.org/onlinedocs/gcc/Opti ... n-sectionsFred wrote: Wed Dec 11, 2024 5:15 pm- All functions are compiled in the same object, which means the library will always includes all the functions in the final executable.
But support from the linker is needed (parameter --gc-sections).Place each function or data item into its own section in the output file if the target supports arbitrary sections. The name of the function or the name of the data item determines the section’s name in the output file.
Use these options on systems where the linker can perform optimizations to improve locality of reference in the instruction space. Most systems using the ELF object format have linkers with such optimizations. On AIX, the linker rearranges sections (CSECTs) based on the call graph. The performance impact varies.
Together with a linker garbage collection (linker --gc-sections option) these options may lead to smaller statically-linked executables (after stripping).
On ELF/DWARF systems these options do not degenerate the quality of the debug information. There could be issues with other object files/debug info formats.
Only use these options when there are significant benefits from doing so. When you specify these options, the assembler and linker create larger object and executable files and are also slower. These options affect code generation. They prevent optimizations by the compiler and assembler using relative locations inside a translation unit since the locations are unknown until link time. An example of such an optimization is relaxing calls to short call instructions.
Yes it will, I haven't got time to test it today but if Fred followed the code I used in atomic web server it should work transparently to the users and also handle multiple certs
Given the slow downs and complexity, I would prefer an own PB tool code to strip functions prior to compile.User_Russian wrote: Wed Dec 11, 2024 11:01 pmGCC has options -ffunction-sections and -fdata-sectionsFred wrote: Wed Dec 11, 2024 5:15 pm- All functions are compiled in the same object, which means the library will always includes all the functions in the final executable.
The hobby developer's wet dream...native PureLibrary creation directly using PureBasic !...