[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference tallis::alpha_migration_tools

Title:Alpha Migration Tools - Digital Confidential
Notice:Kits: VEST v1.1A: Note 15.60, mx v1.2-4: Notes 4.23 & 4.24
Moderator:TALLIS::GORTON
Created:Wed Jun 13 1990
Last Modified:Mon May 26 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:970
Total number of notes:4239

958.0. "Multi-pass Vesting example" by HANDVC::STEVELIU () Tue Mar 11 1997 06:09

        <<< TALLIS::SYS2$:[NOTES$LIBRARY]ALPHA_MIGRATION_TOOLS.NOTE;1 >>>
               -< Alpha Migration Tools - Digital Confidential >-
================================================================================
Note 958.0                    example in revesting                    No replies
HANDVC::STEVELIU                                     27 lines  11-MAR-1997 05:50
--------------------------------------------------------------------------------
    
    I have a image which runs fine on VAX but not after vesting, it
    seems revesting is necessary, but I really need a example to
    demo the revesting scenario. The program calls FMS for forms handling.
    
    HANDVC::SAMPCOB.EXE;1
    
    This image was taken from FMS$EXAMPLES:
    
    could VEST expert offers me a example ?
    
    I would to see a demo session file for the use of VEST qualifiers, 
    and the use of information files in a situation where multi-pass
    vesting is executed.
    
    Sorry that I find the doc on translating images do not help me 
    enough and that's why I ask.
    
    You could pick another image to demo a revesting example if you like,
    please specify what should be done on the VAX side during analysis,
    and what to do afterwards on the Alpha side.
    
    many thanks in advance.
    
    sl.
     
    
    
    
T.RTitleUserPersonal
Name
DateLines
958.1TALLIS::NELSONIt&#039;s not the years it&#039;s the mileage!Tue Mar 11 1997 16:0912
    Why do you think revesting is necessary?


    I tried vesting your example, and I saw a lot of unsupported absolute
    references in the warnings.  We don't have FMS installed here so
    running it didn't do me a lot of good.  You may have an image which
    isn't vest-able.


    Brian

958.2Signs to determine investability ?HANDVC::STEVELIUTue Mar 11 1997 23:2854
    
    what are all the sure signs to determine investability ? This
    list of negative signs is *VERY IMPORTANT* to determine whether
    vesting should be continued or not. 
    
    for instance, you indicate "unsupported absolute references", where
    to look for these errors ?
    
    This list will tell me not to waste time on further vesting but turning
    to recompilation as a 2nd alternative.
    
    when I vest, I got these warnings :

HANDVG::[] vest vaxsampcob.exe /warning
%VEST-I-NOHIF, HIF file SYS$COMMON:[SYSLIB]VAXSAMPCOB.HIF; not found
-RMS-E-FNF, file not found
%VEST-I-READING, Reading file SYS$COMMON:[SYSLIB]COBRTL.IIF;
%VEST-I-READING, Reading file SYS$COMMON:[SYSLIB]FDVSHR.IIF;
%VEST-I-READING, Reading file SYS$COMMON:[SYSLIB]LIBRTL2.IIF;
%VEST-I-READING, Reading file SYS$COMMON:[SYSLIB]LIBRTL.IIF;
%VEST-I-PASS1, Starting analysis pass 1
%VEST-I-VAXPACKED, VAX packed decimal string opcode CVTLP  -- will be emulated
        At:    SAMP\SAMP\1330 [COBOL] (0000A662)
        Input: CVTLP  1C34(R10),S^#08,(SP)
%VEST-I-VAXPACKED, VAX packed decimal string opcode EDITPC -- will be emulated
        At:    SAMP\SAMP\1330 [COBOL] (0000A668)
        Input: EDITPC S^#08,(R3),0FC4(R11),4884(R10)
%VEST-I-READING, Reading file SYS$COMMON:[SYSLIB]P1_SPACE.IIF;
%VEST-I-VAXPACKED, VAX packed decimal string opcode CVTTP  -- will be emulated
        At:    SAMP\SAMP\768 [COBOL] (0000968A)
        Input: CVTTP  S^#07,04(SP),@0000BB44,S^#06,0C(SP)
%VEST-I-FLAGIO, Image calls system service SYS$QIOW which may perform asynchrono
us I/O
        At:    COB$$RESTVA\_COB$CODE\263 [BLISS-32] (0000B691)
        Input: CALLS  S^#0C,@#7FFEDE00
%VEST-I-PASS2, Starting analysis pass 2
%VEST-I-ENDPASS2, Ending analysis pass 2 -- beginning code generation and output
%VEST-I-NONSTDCALLS, Non-standard call sets R10 R11
        At:    SAMP\SAMP\541 [COBOL] (00008E04)
%VEST-I-NONSTDCALLU, Non-standard call uses R10
        At:    PASSKY\PASSKY\2592 [COBOL] (0000AB6A)
%VEST-I-NONSTDCALLU, Non-standard call uses R10
        At:    RANGE\RANGE\3449 [COBOL] (0000AE73)
%VEST-I-NONSTDCALLU, Non-standard call uses R6
        At:    RANGE\RANGE\3478 [COBOL] (0000B057)

I have also placed the source file here where you can indicate 
abnormality :

HANDVC::SAMPCOB.COB;4

thanks.

-steve
958.3TALLIS::NELSONIt&#039;s not the years it&#039;s the mileage!Wed Mar 12 1997 10:4742
    	First of all, you never answered my question as to why you think
    this image needs re-vesting.  Could you please elaborate?


    	If you get a lot of HIF entries, then you'll gain something by
    revesting.

    
>    what are all the sure signs to determine investability ? This
>    list of negative signs is *VERY IMPORTANT* to determine whether
>    vesting should be continued or not. 


    	I use the /SHOW=ALL/WARN=ALL qualifiers *always*.  Then, if you see
    informationals, check them over.  You're probably okay but you need to
    look at them carefully to make sure.  If you see warnings, there's a
    better chance you've got a problem.  And if you see errors, you've got
    problems for sure.


    	Please see Appendix C, Debugging Translations (in the translating
    guide), for more info.

    
>    for instance, you indicate "unsupported absolute references", where
>    to look for these errors ?


    	I may have gotten those because we don't have FMS installed here.
    I assume the image you vested in your last example was the same one as
    you had in HANDVC""::[], right?  If you translated with the qualifiers
    I used above, then you'll get *all* the warnings and so forth on your
    screen and in the .lis file vest will create.


    	For a list of the types of things vest doesn't support see the SPD.



    Brian

958.4Vestability vs PerformanceHANDVC::STEVELIUThu Mar 13 1997 03:2237
    
    >>First of all, you never answered my question as to why you think
    >>this image needs re-vesting.  Could you please elaborate?
    
    I got the impression that if you are not successful in your 1st pass
    of vesting an image, then you have to revest it a few more time, 
    this will increase the chance of vesting the image successfully.
    
    But then, I read the SPD as you indicated to me :
    
     " DECmigrate for OpenVMS AXP produces a working OpenVMS AXP executable
     from any OpenVMS VAX executable that meets the criteria outlined be-
     low. This translation is completed in a single pass, .........
                                           ^^^^^^^^^^^^^
    
     out accessing the program source code. Performance of the translated
                                            ^^^^^^^^^^^
     application can sometimes be improved by successive translations, us-
                                              ^^^^^^^^^^^^^^^^^^^^^^^ 
     ing the automatic feedback capability incorporated in DECmigrate. "
    
     The above description indicates translation is "complete" in the 1st
     pass and any subsequent passes only improve performance and not
     vestability. So if a image fails to translate on 1st pass, then no 
     need to continue vesting, right ? here vestability I define it as
     just making a VAX image runable on ALPHA regardless of performance. 
    
     My 2nd question then, I need an example to show me the techniques
     of improving a translated image performance via the proper use of 
     VEST qualifiers and interpretation of results. This part of 
     understanding VEST is not trivial, some common performance 
     enhancement examples are good aids to learning.  
       
     sl.
    
    
      
958.5TALLIS::NELSONIt&#039;s not the years it&#039;s the mileage!Thu Mar 13 1997 10:2034
    
>    I got the impression that if you are not successful in your 1st pass
>    of vesting an image, then you have to revest it a few more time, 
>    this will increase the chance of vesting the image successfully.


    	No, you can only increase the performance, not the vestability.

        
>     The above description indicates translation is "complete" in the 1st
>     pass and any subsequent passes only improve performance and not
>     vestability. So if a image fails to translate on 1st pass, then no 
>     need to continue vesting, right ? here vestability I define it as
>     just making a VAX image runable on ALPHA regardless of performance. 


    	Yes.

    
>     My 2nd question then, I need an example to show me the techniques
>     of improving a translated image performance via the proper use of 
>     VEST qualifiers and interpretation of results. This part of 
>     understanding VEST is not trivial, some common performance 
>     enhancement examples are good aids to learning.  
       


    	If you get HIF entries written out while using the application,
    then retranslate.  This is described in section 4.2 of the book.



    Brian
          
958.6revesting demo needed !HANDVC::STEVELIUTue Mar 18 1997 03:4219
    
    I have an image placed on handvc::GET_HWID.EXE;54
    
    I do the vesting and run the translated image and I got :
    
    [] run GET_HWID_TV.EXE;1
    status = 1
    hwid   = A-075-<8-
    len    = 9
    %TIE-I-HIFENTRIESWRITT, $1$DUA0:[USER0.][QA]GET_HWID.HIF; created. 
    There were 3 HIF entries written to it.
    
    can you take my program and show me with your session log on how
    to improve image performance via revesting ? maybe I didn't get 
    it right when I try it.
    
    sl.
    
     
958.7TALLIS::wlfgng.amt.tay1.dec.com::nelsonIt&#039;s not the years it&#039;s the mileage!Tue Mar 18 1997 11:2211
No session log is necessary -- it's trivial to use a HIF file to improve performance.

Please read section 2.1.  There are various documented ways to make sure VEST sees your
HIF file when you retranslate.  Simplest is to move the HIF file to the directory where
you'll be VESTing, but you can also use qualifiers and logicals to point to the directory
where the HIF files are kept.  Once pointed to, you just reVEST.


Brian


958.8TALLIS::wlfgng.amt.tay1.dec.com::nelsonIt&#039;s not the years it&#039;s the mileage!Tue Mar 18 1997 11:257
You might also do a dir/title=hif in this notes conference.  This topic has been
discussed at length.


Brian