Deutsch   English   Français   Italiano  
<3e78dbf087fceab8acc676da77f7f36f@www.novabbs.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.quux.org!news.nk.ca!rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: mitchalsup@aol.com (MitchAlsup1)
Newsgroups: comp.arch
Subject: Re: Misc (semi OT): Well, distractions...
Date: Thu, 24 Apr 2025 23:00:48 +0000
Organization: Rocksolid Light
Message-ID: <3e78dbf087fceab8acc676da77f7f36f@www.novabbs.org>
References: <vue615$2b0tt$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
	logging-data="1746375"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="o5SwNDfMfYu6Mv4wwLiW6e/jbA93UAdzFodw5PEa6eU";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: cb29269328a20fe5719ed6a1c397e21f651bda71
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$UbFZbf78Smy9.uRU4JktSOyMSQ/pgHIQt3RX9QGzur9CUtmAhs0x.
Bytes: 1857
Lines: 35

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