• Re: Misc (semi OT): Well, distractions...

    From MitchAlsup1@21:1/5 to BGB on Thu Apr 24 23:00:48 2025
    On Thu, 24 Apr 2025 20:10:29 +0000, BGB wrote:

    ----------


    But, a recent line of fiddling has gone in an odd direction.
    I felt a need for a basic script language for some tasks;

    I have been doing something similar--except I wrote my script
    translator in eXcel.

    I use it to read *.h files and spit out *.c files that translate
    type mathfunction(type arguments) into a series of lines Brian's
    compiler interprets as transcendental instructions in My 66000
    ISA.

    So, code contains the prototype::

    extern type_r recognized_name( type_a1 name );

    and my scripter punts out::

    type_r recognized_spelling( type_a name )
    {
    register typoe_a __asm__("R1") = name;
    __asm__("instruction_spelling\t%4,%4" : "=r" (R1) : "r" (r1) );
    return R1;
    }

    So when user codes (in visibility of math.h)

    y = sinpi( x );

    compiler spits out:

    SINPI Ry,Rx

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)