[Info-vax] VAX Macro to C conversion

Dave Froble davef at tsoft-inc.com
Sat Jul 13 19:49:30 EDT 2019


On 7/13/2019 1:53 PM, seasoned_geek wrote:
> On Tuesday, July 9, 2019 at 8:03:53 AM UTC-5, John Reagan wrote:
>> On Tuesday, July 9, 2019 at 12:15:48 AM UTC-4, Michael Moroney wrote:
>>
>> The shadow driver has its own home-made "threading" package.  Plus almost every routine can possible jump into the middle of another routine.  So you can enter through the prologue of routine "A", jump into "B", conditionally jump into "C" and exit through one of several epilogues.  The Macro compiler has to keep lots of breadcrumbs so the epilogues will restore the right values to the right registers.  That would all be difficult to mechanically translate into C (or anything else).  It would require algorithm changes.  The current design is best suited for an "assembler-style" language that supports such things.
>
> We used to do that all the time in BASIC with the CHAIN statement. /action duck and run
>

Yep, I remember.  Didn't really like chaining into the middle of a 
program.  I'm pretty sure that was a Basic+ feature.

Also pretty sure I don't like it in Macro-32 either.

-- 
David Froble                       Tel: 724-529-0450
Dave Froble Enterprises, Inc.      E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA  15486



More information about the Info-vax mailing list