MY CART (5)

Use Coupon: CART20 and get 20% off on all online Study Material

ITEM
DETAILS
MRP
DISCOUNT
FINAL PRICE
Total Price: R

There are no items in this cart.
Continue Shopping
Menu
Get instant 20% OFF on Online Material.
coupon code: MOB20 | View Course list

  • Complete JEE Main/Advanced Course and Test Series
  • OFFERED PRICE: R 15,000
  • View Details
Get extra R 3,000 off
USE CODE: MOB20

				   

What is modular programming??

7 years ago

Share

Answers : (1)

										

Modular programming can be used to break up a large program into manageable units, or to create code that can be easily re-used.  A modular program consists of a main module and one or more auxiliary modules.  Each module originates from a separate source code file.  The main module is compiled as an EXE, and calls functions in the auxiliary modules.  The auxiliary modules can be dynamically linked, meaning they exist as separate executable files (DLLs) which are loaded when the main EXE is run; or they can be statically linked, meaning they are compiled as object files or static libraries (LIBs) that are combined with the main module into a single executable file.

Once you have learned how to create an executable file from an XBasic source program, it is easy to extend the procedure to make dynamically linked modules and (a little less easily) statically linked modules.  There are, however, a few rules that must be followed when writing the source code for the auxiliary modules.


Each module must have a unique name, assigned in the PROGRAM statement.  This name must be the same as the file name of the source code, minus the .x extension.  For example, the source code auxiliary.x must have the statement PROGRAM "auxiliary" in the PROLOG.  (The standard PROLOG code contains the comment that the program name must have 1 to 8 characters, but names longer than this seem to work without any problem.  However, the name cannot contain spaces.)


Function names need to be unique across all modules (with the exception of INTERNAL FUNCTIONs).  This includes the Entry() function, which will need to be renamed in each auxiliary module.  After re-naming the Entry() function, be sure to edit the PROLOG so that the new name is the first declared function.  See below for more notes on the Entry function.


All functions, composite types, and global constants that will be used by the main module (or by another auxiliary module) must be exported - ie., enclosed in an EXPORT...END EXPORT block in the PROLOG.


EXTERNAL variables can be used in statically linked modules, but not in DLLs.  Such variables are shared only within a single executable module, and since all statically linked modules are combined with the main module into a single EXE, EXTERNAL variables can be shared between them.  A DLL remains separate from other modules, and does not share EXTERNAL variables with them.

7 years ago

Post Your Answer

Other Related Questions on Computer Science And Technologies

How to securing a website with client SSL certificate
 
 
Secure Sockets Layer (SSL): How It Works Secure Sockets Layer (SSL) technology protects your Web site and makes it easy for your Web site visitors to trust you in three essential ways: 1. An...
 
Amit Saxena 7 years ago
 
Reason to Implement SSL in Website.. If you have sensitive data on your site, or the site is intended for a limited audience, you may want to implement user certificate authorization, which...
 
Ravi Sharma 7 years ago
 
Here are some guidelines for the ticket problem description: Provide your site address (URL and path) Is the server Apache or IIS? If the server is not SSL-enabled, can the server admin set...
 
Himanshu Vijay 7 years ago
What is SaaS Technology?
 
 
What is SaaS? Software as a service (or SaaS) is a way of delivering applications over the Internet—as a service. Instead of installing and maintaining software, you simply access it...
 
Ravi Sharma 7 years ago
 
Software as a Service(SaaS) Software as a Service (SaaS) - described as software applications deployed as a hosted service and accessed over the Internet via a standard web browser- is...
 
Swati Kharodia 7 years ago
 
SaaS Instead of owning software - and all the investment, maintenance, and depreciation it entails – you can simply rent use of that software from PHASE 2. Save on: - Hardware -...
 
Radhika Batra 7 years ago
What is Object Oriented Programming
 
 
A type of programming in which programmers define not only the data type of a data structure, but also the types of operations (functions) that can be applied to the data structure. In this...
  img
Aditi Chauhan 7 years ago
 
Features of Object-Oriented Programming Languages Data encapsulation or data abstraction Data encapsulation, sometimes referred to as data hiding, is the mechanism whereby the implementation...
 
Ravi Sharma 7 years ago
 
The Main Feature of Object Oriented Programming are : Encapsulation: The term encapsulation is often used interchangeably with information hiding.Information hiding in computer science is...
 
Swati Kharodia 7 years ago
What is Ajax and why it is used widely?
 
 
AJAX Uses HTTP Requests In traditional JavaScript coding, if you want to get any information from a database or a file on the server, or send user information to a server, you will have to...
 
Ravi Sharma 7 years ago
 
AJAX = Asynchronous JavaScript and XML AJAX stands for Asynchronous JavaScript And XML. AJAX is a type of programming made popular in 2005 by Google (with Google Suggest). AJAX is not a new...
 
Himanshu Vijay 7 years ago
tell me top engg collages in andhra pradesh??????????????
 
 
Dear Chetan Sreedevi women,s college,MVSR college,Deccan college,Muffacam colleges are top colleges in andhra pradesh
 
Prabhakar ch one year ago
 
Sreedevi women,s college,MVSR college,Deccan college,Muffacam colleges are top colleges in andhra pradesh sreedevi womens college,mvsr college,deccan college,muffacam colleges are top...
 
SAI SANDY one year ago
 
Sreedevi women,s college,MVSR college,Deccan college,Muffacam colleges are top colleges in andhra pradesh sreedevi womens college,mvsr college,deccan college,muffacam colleges are top...
 
raj one year ago
nit raipur vs iiit jabalpur which is better..? please reply soon
 
 
The problems of good faculty is always there. Franckly speekng, this problem is also present in the newer IITs. Now you can image. In B.Tech, don’t entirely depends on the faculties.
  img
Vijay Mukati one year ago
 
Choice is yours. I will suggest you to go through the official website of jee mains to see the previous year opening and closing rank for different rounds. Thanks.
  img
Vijay Mukati one year ago
 
NIT R is older institute and hence is equiped with the all the facilites. All is Well.!!!!
  img
Vijay Mukati one year ago
why maximum of the people choose iits ? can u give me explination>??
 
 
IITs are considered as the best institute for Engineering students. Best talents from the country choose these institutes because for its best educaton and environment there. They are also...
  img
Vijay Mukati one year ago
 
Dear Dheeru Maximum of the people choose iits because of some huge reasons.There is good quality of FOOD , BED and ENJOYEMENT All the best for your bright future
 
Prabhakar ch one year ago
 
HAI DHEERU CHOWDARY MOST OF THE STUDENTS IN INDIA CHOOSES IITS WHY BECAUSE IN IITS ADMINISTRATION AND FACULTY ARE VERY WELL.AND ALSO JOB OPPORTUNITIES ARE VERY WELL.
 
RAMCHANDRARAO one year ago
View all Questions »

  • Complete AIPMT/AIIMS Course and Test Series
  • OFFERED PRICE: R 15,000
  • View Details
Get extra R 3,000 off
USE CODE: MOB20

  • Complete JEE Main/Advanced Course and Test Series
  • OFFERED PRICE: R 15,000
  • View Details

Get extra R 3,000 off
USE CODE: MOB20

More Questions On Computer Science And Technologies

Ask Experts

Have any Question? Ask Experts

Post Question

 
 
Answer ‘n’ Earn
Attractive Gift
Vouchers
To Win!!!
Click Here for details