Sujet : Re: Misc (semi OT): Well, distractions...
De : mitchalsup (at) *nospam* aol.com (MitchAlsup1)
Groupes : comp.archDate : 25. Apr 2025, 00:00:48
Autres entêtes
Organisation : Rocksolid Light
Message-ID : <3e78dbf087fceab8acc676da77f7f36f@www.novabbs.org>
References : 1
User-Agent : Rocksolid Light
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