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

Conference decwet::visual

Title:Microsoft Visual C++ bug reports and kits
Notice:Register in Topic 2. 5.Last for latest Kit
Moderator:DECWET::THOMASN
Created:Tue May 17 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:521
Total number of notes:2938

480.0. "Optimization for EV4, EV5 or EV56 question." by MQOOA::LEDOUX (Vincent [email protected]) Thu Mar 13 1997 11:27

    Is there a utility that allows to see if an executable
    image or DLL has been compiled and optimzed for a EV4, EV5 
    or EV56?
    
    ie: Something like $ANAL/IMAGE under OpenVMS?
    
    Regards,
    
    Vince.
T.RTitleUserPersonal
Name
DateLines
480.1DECCXL::OUELLETTEcrunchThu Mar 13 1997 12:4613
Not as such.  You can use link -dump -disasm foo.exe to see the instructions.
It's pretty easy to spot unoptimized code... if you've ever read assembly
before.  Code compiled for EV56 will have stb and stw instructions.
It takes an expert to tell the difference between code scheduled for
EV4 and EV5, but even that's possible.

At one time we were putting "what text" into object files, but given
that windows applications have thousands of files, those thousands of
strings were problematically large.  For a time, a lighter weight soloution
using COMDAT strings and a pointer per file was kicked around, but due
to lack of demand, priority and people leaving digital, it never got done.

Roland.
480.2Compiler Switchable?SWAM1::POIANI_MIFri Mar 28 1997 10:064
    Is there a Vis C++ or DEC FORTRAN for Alpha NT compiler switch similar
    to the UNIX "-tune ev5" switch to optimize for a given CPU?
    
    MP
480.3GEMEVN::GLOSSOPOnly the paranoid surviveFri Mar 28 1997 10:177
> Vis C++ 

-QA21164

> DEC FORTRAN 

probably -tune ev5, but I'm not positive
480.4that's rightHYDRA::DONSBACHJeff Donsbach, Software Partner Engineering, DTN 297-6862Mon Mar 31 1997 21:398
    
    .3 is correct. /QA21164 == -tune ev5
    
    In VC++ 4.2 and later, there is also /QA21164A == -tune ev56,
    though I don't think it's documented in the on-line manuals.
    
    -Jeff D.
    
480.5Code faultsDECWET::METZGERThu Apr 03 1997 11:0716
    The way to find out where in the code the faults are occurring is to
    disable fixups by running axpalign/enable, attach the debugger to the
    process when an alignment fault is reported by the OS (i.e. press the
    Cancel button from the dialog box informing that an alignment fault 
    has occured) and examine the call stack. 
    
    
    
    Information about porting code from Intel to RISC platforms comes as
    part of the VC5.0 tutorials that ship with the RISC edition. Look under
    "Developer Products\Visual C++\Visual C++ RISC programmer's guide". If
    a piece of code is created with these guidelines in mind (which are not
    many), then porting it to a RISC platform should be a matter of just
    adding a RISC configuration to the project.