Aerospace



Discussion Forum

Home

Company Information

Information Request

Linux How-to Guides

ADSP 21xx
Digital Signal Processing
Tutorials

SW Utilities

On-line Order Form

Aerospace Projects

Commercial Projects

Circuit Boards

Server Support


bonk

Have you found this site useful? Did we save you time? Did we cure your head-ache? Is your hair growing back now?

Please make a donation to help with maintenance.


Objective Real-Time Software on the ADSP21XX

SLOC ver. 1.2, ADSP Source Lines Of Code counter

Introduction

SLOC is a DOS utility, for use with Analog Devices ADSP Assembler code.

SLOC counts the physical and source lines of code in ADSP assembler files in an intelligent fashion, to provide an accurate code and time estimation method.

Physical lines of code corresponds to the number of line feed characters in a file.

Source line lines of code are a tally of all the semi colon characters, excluding those that reside inside comments.

Useage

SLOC is intended to be command line or batch file driven.

Use the DOS dir command to create a batch file called s.bat

Example

Create a batch file, using the DOS dir command

dir *.dsp > s.bat

Edit the list of files in s.bat and then run SLOC on all assembler files in rapid succession using this batch file. The count should include all .dsp assembler and .h include files.

Software Size and Time Estimation

Use SLOC to count old projects that are similar in nature to the new project, then you can extrapolate time and size estimates for new projects from that data. Estimation works best when you create a spread sheet with historic data, to use for new estimates. Your estimates should then become progressively more accurate.

Rules of Thumb

For DSP code, the following rules of thumb can be used for time estimation: Assume you are planning a new project, in an ISO 9001 environment, then

  • The average Productivity for C-Code = 2.5 SLOC per hour.
  • The average Productivity for Assembler Code = 20 SLOC per hour.

The average time estimate includes all programming related activities:

  • Documentation,
  • Planning,
  • Coding,
  • Unit Testing and
  • Integration.


Copyright © 1996-2008, Aerospace Software Ltd., GPL.