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

Conference turris::languages

Title:Languages
Notice:Speaking In Tongues
Moderator:TLE::TOKLAS::FELDMAN
Created:Sat Jan 25 1986
Last Modified:Wed May 21 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:394
Total number of notes:2683

241.0. "IN-LINE EXPANSION OF COBOL AND VAX C" by EMILE::CHAFFAUT () Fri Jul 07 1989 08:50

I am working on the big CACII  project to replace the heart of the PARIS Stock
Exchange system.

In order to evaluate the load of his existing Cobol applications he wants to 
know the Line-expansion factor of the COBOL language :
  ie : the nb of macro instructions generated by a line of Cobol.

Knowing the nb of lines needed to treat an order, he would extrapolate to the 
load on a VAX.... 

I need a quick response because the customer is on hollidays today evening.

Thanks for your help
Catherine CHAFFAUT

T.RTitleUserPersonal
Name
DateLines
241.1KYOA::MIANOO.K. so who cares about the METS?Sat Jul 08 1989 13:5339
It sounds like what you customer wants to do is to calculate something
like: 

CPU-load = 100% * CPU-MIPS /
( number-of-cobol-lines * number-of-instructions-per-line / execution-time )

To find the "line expansion factor" your customer needs to do
do a COBOL/MACHINE/LIST on the VAX.  This will give him the machine
instructions.  He could count them and then divide by the number of
lines. 

Unfortunately, that method wants to try will not give your customer the
information he desires.  Here are some reasons why:

1) The number of instructions generated by a COBOL statement could very from
one (maybe even zero) to hundreds.

2) The time to different execute instructions in hardware can very by
a factor of a hundred.

3) Some instructions many be emulated in software which would increase the
variation even more.

4) You have to include system overhead and I/O in order to measure the
load.

5) It sounds like he wants to compare the VAX's instructions to another
machine's.  Most other machines require more instructions to perform the
same task as a VAX does.  The execution time for comparable instructions
varies from machine to machine.

To measure true CPU load you have to use the tools that are designed for
it like the VMS MONITOR Utility, SPM, or possibly even PCA.

I hope this answers your question.  We may have lost something in the
English translation.  You mentioned VAX C in the title but not in the
note.

John
241.2TOKLAS::FELDMANDay 4: Second floor deck and gable endSun Jul 09 1989 11:204
    This question is probably better asked in the COBOL conference,
    although much of the answer is generic, as given in .1.
    
       Gary