Revision aa95e3a5 tcg/README
b/tcg/README | ||
---|---|---|
75 | 75 |
* Helpers: |
76 | 76 |
|
77 | 77 |
Using the tcg_gen_helper_x_y it is possible to call any function |
78 |
taking i32, i64 or pointer types. By default, before calling an helper,
|
|
78 |
taking i32, i64 or pointer types. By default, before calling a helper, |
|
79 | 79 |
all globals are stored at their canonical location and it is assumed |
80 |
that the function can modify them. This can be overriden by the |
|
80 |
that the function can modify them. This can be overridden by the
|
|
81 | 81 |
TCG_CALL_CONST function modifier. By default, the helper is allowed to |
82 |
modify the CPU state or raise an exception. This can be overriden by |
|
82 |
modify the CPU state or raise an exception. This can be overridden by
|
|
83 | 83 |
the TCG_CALL_PURE function modifier, in which case the call to the |
84 | 84 |
function is removed if the return value is not used. |
85 | 85 |
|
... | ... | |
488 | 488 |
the speed of the translation. |
489 | 489 |
|
490 | 490 |
- Don't hesitate to use helpers for complicated or seldom used target |
491 |
intructions. There is little performance advantage in using TCG to |
|
491 |
instructions. There is little performance advantage in using TCG to
|
|
492 | 492 |
implement target instructions taking more than about twenty TCG |
493 | 493 |
instructions. |
494 | 494 |
|
Also available in: Unified diff