北京荣宝春拍精品展呈现一批来源有序大师的佳作
百度 所谓软资源,是指在软价值创造过程中使用的非实物资源,除了传统的人才、科学成果、技术专利、资金之外,还包括知识产业的经典著作、文献档案、传播模式、影响力;文化娱乐产业的IP积累、明星、院线、体育俱乐部、赛事、口碑评论;信息产业的大数据、算法、互联网平台、社交网络;金融产业的信用、国际货币发行权、金融定价权;服务业的品牌、商业模式等。The libgccjit developers strive for ABI and API backward-compatibility: programs built against libgccjit.so stand a good chance of running without recompilation against newer versions of libgccjit.so, and ought to recompile without modification against newer versions of libgccjit.h.
Note
The libgccjit++.h C++ API is more experimental, and less locked-down at this time.
API compatibility is achieved by extending the API rather than changing it. For ABI compatiblity, we avoid bumping the SONAME, and instead use symbol versioning to tag each symbol, so that a binary linked against libgccjit.so is tagged according to the symbols that it uses.
For example, gcc_jit_context_add_command_line_option()
was added in
LIBGCCJIT_ABI_1
. If a client program uses it, this can be detected
from metadata by using objdump
:
$ objdump -p testsuite/jit/test-extra-options.c.exe | tail -n 8
Version References:
required from libgccjit.so.0:
0x00824161 0x00 04 LIBGCCJIT_ABI_1
0x00824160 0x00 03 LIBGCCJIT_ABI_0
required from libc.so.6:
You can see the symbol tags provided by libgccjit.so using objdump
:
$ objdump -p libgccjit.so | less
[...snip...]
Version definitions:
1 0x01 0x0ff81f20 libgccjit.so.0
2 0x00 0x00824160 LIBGCCJIT_ABI_0
3 0x00 0x00824161 LIBGCCJIT_ABI_1
LIBGCCJIT_ABI_0
[...snip...]
Programmatically checking version?
Client code can programmatically check libgccjit version using:
-
int gcc_jit_version_major(void)?
Return libgccjit major version. This is analogous to __GNUC__ in C code.
-
int gcc_jit_version_minor(void)?
Return libgccjit minor version. This is analogous to __GNUC_MINOR__ in C code.
-
int gcc_jit_version_patchlevel(void)?
Return libgccjit patchlevel version. This is analogous to __GNUC_PATCHLEVEL__ in C code.
Note
These entry points has been added with LIBGCCJIT_ABI_13
(see below).