Re: Dynamic Superinstructions

Anton Ertl <anton-eMTcDWn+JWX/RkxMZTRrOJdqbFPxfnh/@public.gmane.org> Tue, 13 Feb 2024 22:43:14 +0100
Newsgroups gmane.comp.lang.forth.gforth
Message-ID <[email protected]>
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 <anton-eMTcDWn+JWX/RkxMZTRrOJdqbFPxfnh/@public.gmane.org> 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