SlideShare ist ein Scribd-Unternehmen logo
1 von 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…..

Weitere ähnliche Inhalte

Was ist angesagt?

Pengaruh RPL terhadap lingkungan
Pengaruh RPL terhadap lingkunganPengaruh RPL terhadap lingkungan
Pengaruh RPL terhadap lingkungan
أحمد رازين
 
Komputer dan masyarakat komputer dan dunia hiburan
Komputer dan masyarakat komputer dan dunia hiburanKomputer dan masyarakat komputer dan dunia hiburan
Komputer dan masyarakat komputer dan dunia hiburan
seolangit2
 

Was ist angesagt? (20)

Dr. apj abdul kalam books and quotes
Dr. apj abdul kalam books and quotesDr. apj abdul kalam books and quotes
Dr. apj abdul kalam books and quotes
 
Struktur dan Fungsi CPU
Struktur dan Fungsi CPUStruktur dan Fungsi CPU
Struktur dan Fungsi CPU
 
Pengaruh RPL terhadap lingkungan
Pengaruh RPL terhadap lingkunganPengaruh RPL terhadap lingkungan
Pengaruh RPL terhadap lingkungan
 
Lexical analyzer
Lexical analyzerLexical analyzer
Lexical analyzer
 
Etika Profesi seorang Game Programmer di perusahaan
Etika Profesi seorang Game Programmer di perusahaan Etika Profesi seorang Game Programmer di perusahaan
Etika Profesi seorang Game Programmer di perusahaan
 
Modern Resume Analyser For Students And Organisations
Modern Resume Analyser For Students And OrganisationsModern Resume Analyser For Students And Organisations
Modern Resume Analyser For Students And Organisations
 
Perangkat keras dan perangkat lunak
Perangkat keras dan perangkat lunakPerangkat keras dan perangkat lunak
Perangkat keras dan perangkat lunak
 
1.pengenalan sistem operasi
1.pengenalan sistem operasi1.pengenalan sistem operasi
1.pengenalan sistem operasi
 
Project Report on Employee Management System.docx
Project Report on Employee Management System.docxProject Report on Employee Management System.docx
Project Report on Employee Management System.docx
 
Elemen dasar sistem komputer
Elemen dasar sistem komputerElemen dasar sistem komputer
Elemen dasar sistem komputer
 
Assemblers
AssemblersAssemblers
Assemblers
 
Komputer dan masyarakat komputer dan dunia hiburan
Komputer dan masyarakat komputer dan dunia hiburanKomputer dan masyarakat komputer dan dunia hiburan
Komputer dan masyarakat komputer dan dunia hiburan
 
Wings of fire ppt
Wings of fire pptWings of fire ppt
Wings of fire ppt
 
Jenis & proses interupsi
Jenis & proses interupsiJenis & proses interupsi
Jenis & proses interupsi
 
Qbasic tutorial
Qbasic tutorialQbasic tutorial
Qbasic tutorial
 
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONS
 
Prosessor SAP 1
Prosessor SAP 1Prosessor SAP 1
Prosessor SAP 1
 
Python as a calculator
Python as a calculatorPython as a calculator
Python as a calculator
 
Menganalisis permasalahan pada instalasi software aplikasi
Menganalisis permasalahan pada instalasi software aplikasiMenganalisis permasalahan pada instalasi software aplikasi
Menganalisis permasalahan pada instalasi software aplikasi
 
Ss4
Ss4Ss4
Ss4
 

Andere mochten auch (12)

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
 
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
 
System Programming Unit III
System Programming Unit IIISystem Programming Unit III
System Programming Unit III
 
Macro
MacroMacro
Macro
 
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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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)
 

Kürzlich hochgeladen

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
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Kürzlich hochgeladen (20)

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
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
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
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
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
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 

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