Someone explain to me why this happening?
Ok so I'm working on an SM Ext/AMXX Module (code compiles fine on both SM API and AMXX api in current stage) but I noticed something wierd.
As I already know, SM and AMXX (Not 100% sure if true for AMXX) are compiled with clang, my project is setup to work on clang-3.8 and gcc(g++)-4.8 Wierd part: Binary size of binary compiled with clang is roughly 2x bigger then version under gcc/g++ PHP Code:
Builds were set for optimization (-O3) Anyone explain to me why clang is producing 2x bigger binary when code variance is practically none existent (except between which API being built against)? Edit: Digging around compiled files for the project yielded the heavy file size hitters for building with clang being the third party code(zlib, bzip2), zlib ranking highest for most file size. |
Re: Someone explain to me why this happening?
It would help if we knew which compile flags and/or methods you were using.
Edit: There's likely a reason that the SM AMBuildScript adds in compiler-specific flags for GCC and Clang, sometimes even for specific versions of these compilers. |
Re: Someone explain to me why this happening?
Flags for all 3 projects:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
All times are GMT -4. The time now is 05:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.