Re: Programming languages for the very young
From: Ray Dillinger (bear_at_sonic.net)
Date: 01/30/04
- Next message: jmdrake: "Re: Programming languages for the very young"
- Previous message: Stanley Krute: "Re: Mars Rover Not Responding"
- In reply to: Michael D. Ober: "Re: Programming languages for the very young"
- Next in thread: Michael D. Ober: "Re: Programming languages for the very young"
- Reply: Michael D. Ober: "Re: Programming languages for the very young"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jan 2004 19:19:33 GMT
"Michael D. Ober" wrote:
>
> "Joe Marshall" <jrm@ccs.neu.edu> wrote in message
> news:3c9yep0t.fsf@ccs.neu.edu...
> > "Michael D. Ober" <obermd-.@.-alum-mit-edu-nospam> writes:
> >
> > > The last time I looked, all processors except the IBM mainframe
> processors
> > > have machine level SUB and RET instructions. These are the two
> instructions
> > > required for subroutines.
> >
> > You only need a conditional branch to get subroutines. It's a pain,
> > but you can do it.
>
> Actually, BAL does it with unconditional branches. My point was that
> subroutines are part of the stack machine model that just about every
> processor uses and that processors support them in machine code.
Yeah, okay. I'm not using the "native" subroutine instructions, because
Scheme continuations require a non-stack model of call frames. I honestly
thought those were just macros provided by my macro-assembler, but I
guess not. I am using ASM conditional branches to implement subroutine
calls.
Bear
- Next message: jmdrake: "Re: Programming languages for the very young"
- Previous message: Stanley Krute: "Re: Mars Rover Not Responding"
- In reply to: Michael D. Ober: "Re: Programming languages for the very young"
- Next in thread: Michael D. Ober: "Re: Programming languages for the very young"
- Reply: Michael D. Ober: "Re: Programming languages for the very young"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|