SlideShare une entreprise Scribd logo
1  sur  8
MADURAI KAMARAJ UNIVERSITY
SYSTEM SOFTWERE
THE ELENA MACRO PROCESSOR
By:-Ranjeet Kumar
MCA 2nd
year
Reg.no:-B244039
macro processor
 A general-purpose macro processor or
general purpose preprocessor is a macro processor
that is not tied to or integrated with a particular language
or piece of software.
 A macro processor is a program that copies a stream of
text from one place to another, making a systematic set
of replacements as it does so.
 Macro processors are often embedded in other
programs, such as assemblers and compilers.
Sometimes they are standalone programs that can be
used to process any kind of text.
THE ELENA MACRO PROCESSOR
 ELENA was developed as a researched tool, not as a
commercial software product.
 However the same design and implementation
techniques could be used in developing other general-
purpose macro processors.
 Further information about ELENA can be found in
Barcucci and Pelacani(1984).
The ELENA Macro Processor
 Macro definitions in ELENA are composed of a header
and a body
 The header consists of keywords and parameter
markers, which are identified by the character %
 At least one of the first two token s in a macro header
must be a keyword, not a parameter marker
 The macro processor appends a numeric value to create
unique labels
 ELENA provides macro-time variables and macro-time
instructions that can be used to control the macro
expansion
 The IF statement is a macro-time conditional “go to”
statement
 The macro is identified by the sequence of keywords that
appear in its header
For example, a macro with the header
%1 = %2 + %3
Could be invoked as
ALPHA = BETA + GAMMA
and a macro with header
ADD %1 TO THE VALUE OF %2
could be invoked as
ADD 10 TO THE VALUE OF INDEX
Cont….
%1:=ABSDIFF(%2,%3)
(a)
%1=(%2)>(%3) ? (%2) – (%3) : (%3) – (%2)
(b)
Cont……
Thanks…..

Contenu connexe

En vedette (15)

System Programming Unit II
System Programming Unit IISystem Programming Unit II
System Programming Unit II
 
Microassembler a10
Microassembler a10Microassembler a10
Microassembler a10
 
Unit ii-111206004636-phpapp01
Unit ii-111206004636-phpapp01Unit ii-111206004636-phpapp01
Unit ii-111206004636-phpapp01
 
Elena Macro Processor
Elena Macro ProcessorElena Macro Processor
Elena Macro Processor
 
ANSI C Macros
ANSI C MacrosANSI C Macros
ANSI C Macros
 
Unit 2
Unit 2Unit 2
Unit 2
 
Introduction to systems programming
Introduction to systems programmingIntroduction to systems programming
Introduction to systems programming
 
System programming
System programmingSystem programming
System programming
 
Ss4
Ss4Ss4
Ss4
 
System Programming Unit III
System Programming Unit IIISystem Programming Unit III
System Programming Unit III
 
Macro
MacroMacro
Macro
 
System Programing Unit 1
System Programing Unit 1System Programing Unit 1
System Programing Unit 1
 
Microprocessor ppt
Microprocessor pptMicroprocessor ppt
Microprocessor ppt
 
micro & macro economics
micro & macro economicsmicro & macro economics
micro & macro economics
 
System Programming Overview
System Programming OverviewSystem Programming Overview
System Programming Overview
 

Similaire à ELENA MICROPROCESSOR

Sas macros part 4.1
Sas macros part 4.1Sas macros part 4.1
Sas macros part 4.1
venkatam
 
EVOLUTION OF SYSTEM
EVOLUTION OF SYSTEM EVOLUTION OF SYSTEM
EVOLUTION OF SYSTEM
Sahil Garg
 
SAS Macros part 1
SAS Macros part 1SAS Macros part 1
SAS Macros part 1
venkatam
 
Task Perform addition subtraction division and multiplic.pdf
Task Perform addition subtraction division and multiplic.pdfTask Perform addition subtraction division and multiplic.pdf
Task Perform addition subtraction division and multiplic.pdf
acsmadurai
 
33443223 system-software-unit-iv
33443223 system-software-unit-iv33443223 system-software-unit-iv
33443223 system-software-unit-iv
Shaniya Fathimuthu
 

Similaire à ELENA MICROPROCESSOR (20)

Module 5.pdf
Module 5.pdfModule 5.pdf
Module 5.pdf
 
Sas macros part 4.1
Sas macros part 4.1Sas macros part 4.1
Sas macros part 4.1
 
SSD Mod 2 -18CS61_Notes.pdf
SSD Mod 2 -18CS61_Notes.pdfSSD Mod 2 -18CS61_Notes.pdf
SSD Mod 2 -18CS61_Notes.pdf
 
Micro Assembler
Micro AssemblerMicro Assembler
Micro Assembler
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
 
EVOLUTION OF SYSTEM
EVOLUTION OF SYSTEM EVOLUTION OF SYSTEM
EVOLUTION OF SYSTEM
 
N_Asm Assembly macros (sol)
N_Asm Assembly macros (sol)N_Asm Assembly macros (sol)
N_Asm Assembly macros (sol)
 
Compiler Construction introduction
Compiler Construction introductionCompiler Construction introduction
Compiler Construction introduction
 
handout6.pdf
handout6.pdfhandout6.pdf
handout6.pdf
 
3.2
3.23.2
3.2
 
Software
SoftwareSoftware
Software
 
SAS Macros part 1
SAS Macros part 1SAS Macros part 1
SAS Macros part 1
 
Task Perform addition subtraction division and multiplic.pdf
Task Perform addition subtraction division and multiplic.pdfTask Perform addition subtraction division and multiplic.pdf
Task Perform addition subtraction division and multiplic.pdf
 
Writing command macro in stratus cobol
Writing command macro in stratus cobolWriting command macro in stratus cobol
Writing command macro in stratus cobol
 
Chapter#01 cc
Chapter#01 ccChapter#01 cc
Chapter#01 cc
 
33443223 system-software-unit-iv
33443223 system-software-unit-iv33443223 system-software-unit-iv
33443223 system-software-unit-iv
 
Assembler
AssemblerAssembler
Assembler
 
Automating and Validating Semantic Annotations.pdf
Automating and Validating Semantic Annotations.pdfAutomating and Validating Semantic Annotations.pdf
Automating and Validating Semantic Annotations.pdf
 
BAS 150 Lesson 8 Lecture
BAS 150 Lesson 8 LectureBAS 150 Lesson 8 Lecture
BAS 150 Lesson 8 Lecture
 
role of lexical anaysis
role of lexical anaysisrole of lexical anaysis
role of lexical anaysis
 

Plus de ranjeetdon (7)

Pawan111
Pawan111Pawan111
Pawan111
 
Skinput technology
Skinput technologySkinput technology
Skinput technology
 
Mindreadingppt
MindreadingpptMindreadingppt
Mindreadingppt
 
5penpctechnology
5penpctechnology5penpctechnology
5penpctechnology
 
java Ring
java Ringjava Ring
java Ring
 
Finalpptonmindreadingcomputer 140105222853-phpapp01
Finalpptonmindreadingcomputer 140105222853-phpapp01Finalpptonmindreadingcomputer 140105222853-phpapp01
Finalpptonmindreadingcomputer 140105222853-phpapp01
 
Msc(cs)
Msc(cs)Msc(cs)
Msc(cs)
 

Dernier

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Dernier (20)

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 

ELENA MICROPROCESSOR

  • 1. MADURAI KAMARAJ UNIVERSITY SYSTEM SOFTWERE THE ELENA MACRO PROCESSOR By:-Ranjeet Kumar MCA 2nd year Reg.no:-B244039
  • 2. macro processor  A general-purpose macro processor or general purpose preprocessor is a macro processor that is not tied to or integrated with a particular language or piece of software.  A macro processor is a program that copies a stream of text from one place to another, making a systematic set of replacements as it does so.  Macro processors are often embedded in other programs, such as assemblers and compilers. Sometimes they are standalone programs that can be used to process any kind of text.
  • 3. THE ELENA MACRO PROCESSOR  ELENA was developed as a researched tool, not as a commercial software product.  However the same design and implementation techniques could be used in developing other general- purpose macro processors.  Further information about ELENA can be found in Barcucci and Pelacani(1984).
  • 4. The ELENA Macro Processor  Macro definitions in ELENA are composed of a header and a body  The header consists of keywords and parameter markers, which are identified by the character %  At least one of the first two token s in a macro header must be a keyword, not a parameter marker  The macro processor appends a numeric value to create unique labels  ELENA provides macro-time variables and macro-time instructions that can be used to control the macro expansion  The IF statement is a macro-time conditional “go to” statement  The macro is identified by the sequence of keywords that appear in its header
  • 5. For example, a macro with the header %1 = %2 + %3 Could be invoked as ALPHA = BETA + GAMMA and a macro with header ADD %1 TO THE VALUE OF %2 could be invoked as ADD 10 TO THE VALUE OF INDEX