Re: Does this string processing work for you?



In article <iG6%e.3123$U51.295@xxxxxxxxxxxxxxxxxxxxxxxxxx>,
robin <robin_v@xxxxxxxxxxxxxxxxxx> wrote:

> It isn't a question of "keeping ... hands off".
> When code sich as this is optimised, the control variable
> may be kept in a register, rather than in storage.
> When the loop terminates unexpectedly, the contents
> of the register are lost, and the value of the
> variable in storage is not changed.

Also, what is kept in that control register is probably not the
fortran integer index, it is more likely a byte-oriented address
that is incremented by the size of the items that are read.

$.02 -Ron Shepard
.



Relevant Pages

  • Variable Optimization Question
    ... ....I try to reduce un-necessary temporal variables so it can be ... I try to assign only one register ... storage so two variables can access to only one register storage ... Before and after optimization, there are no temporal ...
    (comp.lang.cpp)
  • Re: assembler question (strong typing)
    ... in reentrant storage and copied it into part of a work area in acquired ... and put an upper bound on the CSECT base ... register and the DSECT base register. ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)
  • Re: Non-DISPLAY numeric data in files
    ... >> are storage to storage makes it easier for the compiler to optimize ... Load Register 1 ... the storage-to-storage operation takes on the order of 50-100 usec. ...
    (comp.lang.cobol)
  • Re: Does this string processing work for you?
    ... > its just asking compiler writers to keep their COTTON-PICKING HANDS OFF the ... may be kept in a register, rather than in storage. ...
    (comp.lang.fortran)
  • Re: J4 - presentation/discussion on "Future of the COBOL Standard"
    ... converting back. ... but IBM put more work into speeding up the binary instructions than ... Storage to storage is claimed to be slower ... than register to register or register to storage. ...
    (comp.lang.cobol)