l***o 发帖数: 302 | 1 We have a customized gcc frontend/runtime library for a new C-like programming
language, the package is from a third party company. They defined some
routines (pretty much like __ashlsi3() for Arithmetic functions) in the
runtime library. Those routines are supposed to be triggered by any assignment
(e.g. a=b) in the codes. The problem is there is nowhere they refer to these
routines except in libcxx/file.c file.h where those routines are declared.
The -S option does give the assembley which con | j****s 发帖数: 5092 | 2 The third party company added some hooks in the GCC compiler, so the compiler
will generate those builtin function calls when it sees the assignment.
You can take a look at gcc/optabs.c, it generates some libgcc library calls.
programming
assignment
【在 l***o 的大作中提到】 : We have a customized gcc frontend/runtime library for a new C-like programming : language, the package is from a third party company. They defined some : routines (pretty much like __ashlsi3() for Arithmetic functions) in the : runtime library. Those routines are supposed to be triggered by any assignment : (e.g. a=b) in the codes. The problem is there is nowhere they refer to these : routines except in libcxx/file.c file.h where those routines are declared. : The -S option does give the assembley which con
|
|