comp.lang.ada
 help / color / mirror / Atom feed
* Assembler to Ada Reverse Ratio o
@ 1995-02-28  0:31 gamache
  1995-02-28  4:39 ` Pug 156
  0 siblings, 1 reply; 3+ messages in thread
From: gamache @ 1995-02-28  0:31 UTC (permalink / raw)



I'm working another assignment, so naturally I have another question to which
I am again, shall we say, clueless. ;-)

Here goes:
If I have some existing legacy code in assembler, there seems to be some
intuitive relationship between that existing code and code that performs
the same function written in Ada.  This intuition is derived (at least
for me) from the expansion ratio between Ada and assembler.  (This ratio
is not only complier/target dependent; but also it is application dependent)
OK. Is there any emperical data on what this reverse relationship (from
legacy code to Ada) would be?  Before any "good design" folks even get
a chance - I am not considering simple recode of the existing code.  I'm
simply trying to scope the size of the Ada effort.  This effort will (with
almost certainty) create a design that is different from the assembler
one.  But at that time the ratio I seek will be easily calculatable.

adTHANKSvance

---------------------------------------------------------------------
Joe Gamache
Lockheed Sanders



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Assembler to Ada Reverse Ratio o
  1995-02-28  0:31 Assembler to Ada Reverse Ratio o gamache
@ 1995-02-28  4:39 ` Pug 156
  1995-03-01 15:41   ` Robert Dewar
  0 siblings, 1 reply; 3+ messages in thread
From: Pug 156 @ 1995-02-28  4:39 UTC (permalink / raw)


I can't say where he got it, but my manager uses a 6:1 ratio.  Of course,
that isn't for a RISC machine.  So, he'd say 4K SLOCs (source lines of
code) of Ada should make about 24K instructions.  I tend to get about
twice he's rate, but I'm a big fan of generics and nested function calls. 
He counts semicolons to generate a SLOC report.  Hope it helps.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Assembler to Ada Reverse Ratio o
  1995-02-28  4:39 ` Pug 156
@ 1995-03-01 15:41   ` Robert Dewar
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Dewar @ 1995-03-01 15:41 UTC (permalink / raw)


It is not the case with optimized code for typical RISC machines that the
number of instructions generated for typical Ada code should be noticeably
higher on a RISC machine than on a CISC machine. On the contrary the larger
number of registers, if well used, may easily DECREASE the total machine
instruction count.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-03-01 15:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-02-28  0:31 Assembler to Ada Reverse Ratio o gamache
1995-02-28  4:39 ` Pug 156
1995-03-01 15:41   ` Robert Dewar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox