On Tue, Feb 13, 2024 at 08:55:12PM +0100, Tomas Hlavaty wrote:
> Hi Anton,
> 
> On Tue 13 Feb 2024 at 10:21, Anton Ertl <[email protected]> 
> wrote:
> > SEE-CODE to see the result of dynamic native-code generations:
> 
> thank you for all the information.
> 
> How can I create my own word with a native code definition which would
> then be subject to Dynamic Superinstructions inlining?  Is it possible
> without rebuilding gforth with custom code, e.g. using CODE or ABI-CODE
> words?

Only Gforth primitives are integrated into dynamic superinstructions.
So you would have to define an additional word in prim, possibly using
a gcc asm statement in the C part of the definition.  The code also
needs to be position-independent.

- anton

Reply via email to