Re: Absolute beginner - Need some pointers

glen herrmannsfeldt <gah@ugcs.caltech.edu>
Wed, 05 Mar 2008 09:07:43 -0800

          From comp.compilers

Related articles
Absolute beginner - Need some pointers nacarlson@gmail.com (NickCarlson) (2008-02-27)
Re: Absolute beginner - Need some pointers DrDiettrich1@aol.com (Hans-Peter Diettrich) (2008-02-28)
Re: Absolute beginner - Need some pointers bc@freeuk.com (Bartc) (2008-02-29)
Re: Absolute beginner - Need some pointers anton@mips.complang.tuwien.ac.at (2008-03-02)
Re: Absolute beginner - Need some pointers anton@mips.complang.tuwien.ac.at (2008-03-03)
Re: Absolute beginner - Need some pointers anton@mips.complang.tuwien.ac.at (2008-03-04)
Re: Absolute beginner - Need some pointers gah@ugcs.caltech.edu (glen herrmannsfeldt) (2008-03-05)
Re: Absolute beginner - Need some pointers sandmann@daimi.au.dk (Soeren Sandmann) (2008-03-07)
| List of all articles for this month |
From: glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups: comp.compilers
Date: Wed, 05 Mar 2008 09:07:43 -0800
Organization: Compilers Central
References: 08-02-091 08-03-008 08-03-013 08-03-022
Keywords: Fortran, history, design, comment
Posted-Date: 05 Mar 2008 21:05:02 EST

Anton Ertl wrote:
(snip)


> Yes, most VMs implement control flow using assembler-style VM branch
> instructions. You don't need backpatching for backward branches
> (e.g., the loop-back branch you mentioned), because in that case you
> know where you want to branch to when you generate the branch.


Fortran up through Fortran 66 allows the test to be done at the end of
the loop. That is, the statements inside the loop are executed at
least once. I believe this is due to the indexing and branching
instructions on the 704, and not that it made code generation easier,
but it would tend to avoid the forward branch that would otherwise be
needed.


-- glen
[The code was smaller, which was a big deal back then. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.