You are on page 1of 2

Software Requirement Specification

January 12, 2010

1 Introduction
This is a Software Requirement Specification for the application ”Memory
Management Like Malloc”.It permits a rigorous assessment of requirements
before design begins.This document contains information about the way the
program works,its performance,system requirements and the interface using
which user can communicate with the program.

2 General Description
Memory management involves:-

• Reserving a large block of memory using the standard C function ,


malloc().

• Allocating and deallocating blocks of memory upon user’s request

• It assists the user with respective messages to overcome the errors at


runtime.

3 Functional Requirements
The program obtains a large block of memory from the heap using malloc.
Input: The user requests for memory by giving number of bytes of memory
required .

1
Output:

• It returns a pointer to the memory assigned.

• If the memory is full it returns a null pointer.

The user can free the memory whenever desired. The memory manager
deallocates the memory and makes it available for further use.

4 External Interface
The user communicates with the program through a data entry screen.The
user is expected to enter the number of bytes of memory required when the
message to provide input is displayed.

5 Performance Requirement
Not applicable.

6 Design Constraints
6.1 Software Constraints
• The program works on Linux operating system.

• A gcc compiler is a must as the source code is written in C.

6.2 Hardware Constraints


• Minimum of 128 MB RAM.

• Any Pentium Processor.

You might also like