SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
1. Show assembly language corresponding to the following C++ statement: while (x<=10) {
S=S+x; x++; }
2. Show the difference between compiler output and interpreter output for the following source
input: A = 25; B = -25; if (A>B) cout<
3. Show the lexical tokens corresponding to the following C++ source input: if (x>=16.5) x=x*.1;
else cout<
4. Show the sequence of atoms put out by the parser, and show the syntax tree corresponding to
the following C++ source input: S = A + C D * S - D / S;
5. Show, in assembly language for a machine of your choice, the output of the code generator for
the following atom string: (SUB,X,Y,Temp1) (ADD,W,Z,Temp2) (TEST,Temp1,>,Temp2,L1)
(JUMP,L2) (LBL,L1) (MOVE,X,Y) (JUMP,L3) (LBL,L2) (MOVE,Y,X) (LBL,L3)
6. If the only computer you have is a Mac (for which you already have a C++ compiler), show how
you can produce a C++ compiler for the SUN computer, without writing any assembly or machine
language.
. Show how Ada compiler can be bootstrapped in two steps on a PC computer

Más contenido relacionado

Similar a 1 Show assembly language corresponding to the following C++.pdf

Type header file in c++ and its function
Type header file in c++ and its functionType header file in c++ and its function
Type header file in c++ and its functionFrankie Jones
 
CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1kvs
 
Lex and Yacc ppt
Lex and Yacc pptLex and Yacc ppt
Lex and Yacc pptpssraikar
 
Home works summary.pptx
Home works summary.pptxHome works summary.pptx
Home works summary.pptxHebaEng
 
CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011Deepak Singh
 
Problem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Problem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT KanpurProblem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Problem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT KanpurVivekananda Samiti
 
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]Chris Adamson
 
BeepBeep 3: A declarative event stream query engine (EDOC 2015)
BeepBeep 3: A declarative event stream query engine (EDOC 2015)BeepBeep 3: A declarative event stream query engine (EDOC 2015)
BeepBeep 3: A declarative event stream query engine (EDOC 2015)Sylvain Hallé
 
Rcpp: Seemless R and C++
Rcpp: Seemless R and C++Rcpp: Seemless R and C++
Rcpp: Seemless R and C++Romain Francois
 
The Ring programming language version 1.10 book - Part 33 of 212
The Ring programming language version 1.10 book - Part 33 of 212The Ring programming language version 1.10 book - Part 33 of 212
The Ring programming language version 1.10 book - Part 33 of 212Mahmoud Samir Fayed
 
Sp 1418794917
Sp 1418794917Sp 1418794917
Sp 1418794917lakshmi r
 
Programming basic computer
Programming basic computerProgramming basic computer
Programming basic computerMartial Kouadio
 

Similar a 1 Show assembly language corresponding to the following C++.pdf (20)

Type header file in c++ and its function
Type header file in c++ and its functionType header file in c++ and its function
Type header file in c++ and its function
 
CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1
 
Perm winter school 2014.01.31
Perm winter school 2014.01.31Perm winter school 2014.01.31
Perm winter school 2014.01.31
 
Lex and Yacc ppt
Lex and Yacc pptLex and Yacc ppt
Lex and Yacc ppt
 
Home works summary.pptx
Home works summary.pptxHome works summary.pptx
Home works summary.pptx
 
CH06 (1).PPT
CH06 (1).PPTCH06 (1).PPT
CH06 (1).PPT
 
Ch04
Ch04Ch04
Ch04
 
CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011
 
Al2ed chapter17
Al2ed chapter17Al2ed chapter17
Al2ed chapter17
 
Faster Python, FOSDEM
Faster Python, FOSDEMFaster Python, FOSDEM
Faster Python, FOSDEM
 
Problem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Problem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT KanpurProblem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Problem set2 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
 
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
 
BeepBeep 3: A declarative event stream query engine (EDOC 2015)
BeepBeep 3: A declarative event stream query engine (EDOC 2015)BeepBeep 3: A declarative event stream query engine (EDOC 2015)
BeepBeep 3: A declarative event stream query engine (EDOC 2015)
 
Rcpp: Seemless R and C++
Rcpp: Seemless R and C++Rcpp: Seemless R and C++
Rcpp: Seemless R and C++
 
The Ring programming language version 1.10 book - Part 33 of 212
The Ring programming language version 1.10 book - Part 33 of 212The Ring programming language version 1.10 book - Part 33 of 212
The Ring programming language version 1.10 book - Part 33 of 212
 
Seminar PSU 10.10.2014 mme
Seminar PSU 10.10.2014 mmeSeminar PSU 10.10.2014 mme
Seminar PSU 10.10.2014 mme
 
Sp 1418794917
Sp 1418794917Sp 1418794917
Sp 1418794917
 
Foxpro (1)
Foxpro (1)Foxpro (1)
Foxpro (1)
 
Programming basic computer
Programming basic computerProgramming basic computer
Programming basic computer
 
TOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdfTOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdf
 

Más de ADARSHMANISH

1 Tiene sentido que Spanish Vines considere ingresar al me.pdf
1 Tiene sentido que Spanish Vines considere ingresar al me.pdf1 Tiene sentido que Spanish Vines considere ingresar al me.pdf
1 Tiene sentido que Spanish Vines considere ingresar al me.pdfADARSHMANISH
 
1 The bones within the middle ear are the least dense bone.pdf
1 The bones within the middle ear are the least dense bone.pdf1 The bones within the middle ear are the least dense bone.pdf
1 The bones within the middle ear are the least dense bone.pdfADARSHMANISH
 
1 Trkiye esnek bir kur rejimine sahiptir Geniletici bir m.pdf
1 Trkiye esnek bir kur rejimine sahiptir Geniletici bir m.pdf1 Trkiye esnek bir kur rejimine sahiptir Geniletici bir m.pdf
1 Trkiye esnek bir kur rejimine sahiptir Geniletici bir m.pdfADARSHMANISH
 
1 Transaction management deals with the problems of always .pdf
1 Transaction management deals with the problems of always .pdf1 Transaction management deals with the problems of always .pdf
1 Transaction management deals with the problems of always .pdfADARSHMANISH
 
1 True or False Magma and Lava are both Melted Rock the.pdf
1 True or False Magma and Lava are both Melted Rock the.pdf1 True or False Magma and Lava are both Melted Rock the.pdf
1 True or False Magma and Lava are both Melted Rock the.pdfADARSHMANISH
 
1 To what extent do you think people choose their own heal.pdf
1 To what extent do you think people choose their own heal.pdf1 To what extent do you think people choose their own heal.pdf
1 To what extent do you think people choose their own heal.pdfADARSHMANISH
 
1 three additional features EmployeeID int salary as d.pdf
1 three additional features EmployeeID int salary as d.pdf1 three additional features EmployeeID int salary as d.pdf
1 three additional features EmployeeID int salary as d.pdfADARSHMANISH
 
1 The upper level of the informatics stack Focuses on in.pdf
1 The upper level of the informatics stack Focuses on in.pdf1 The upper level of the informatics stack Focuses on in.pdf
1 The upper level of the informatics stack Focuses on in.pdfADARSHMANISH
 
1 The table below is the data for an economy 4 Marks ITE.pdf
1 The table below is the data for an economy 4 Marks ITE.pdf1 The table below is the data for an economy 4 Marks ITE.pdf
1 The table below is the data for an economy 4 Marks ITE.pdfADARSHMANISH
 
1 The Successiveapproximation converter has a longer conve.pdf
1 The Successiveapproximation converter has a longer conve.pdf1 The Successiveapproximation converter has a longer conve.pdf
1 The Successiveapproximation converter has a longer conve.pdfADARSHMANISH
 
1 The skin is made up of the and the 2 convey sensations w.pdf
1 The skin is made up of the and the 2 convey sensations w.pdf1 The skin is made up of the and the 2 convey sensations w.pdf
1 The skin is made up of the and the 2 convey sensations w.pdfADARSHMANISH
 
1 The proton motive force PMF generated by the electron t.pdf
1 The proton motive force PMF generated by the electron t.pdf1 The proton motive force PMF generated by the electron t.pdf
1 The proton motive force PMF generated by the electron t.pdfADARSHMANISH
 
1 The production possibilities frontier I Suppose Japan pro.pdf
1 The production possibilities frontier I Suppose Japan pro.pdf1 The production possibilities frontier I Suppose Japan pro.pdf
1 The production possibilities frontier I Suppose Japan pro.pdfADARSHMANISH
 
1 The Port of Prince Rupert is BCs second largest port an.pdf
1 The Port of Prince Rupert is BCs second largest port an.pdf1 The Port of Prince Rupert is BCs second largest port an.pdf
1 The Port of Prince Rupert is BCs second largest port an.pdfADARSHMANISH
 
1 The patient a 12yearold boy shows several areas of to.pdf
1 The patient a 12yearold boy shows several areas of to.pdf1 The patient a 12yearold boy shows several areas of to.pdf
1 The patient a 12yearold boy shows several areas of to.pdfADARSHMANISH
 
1 The prebabiity that both bults are red is 2 The erobasic.pdf
1 The prebabiity that both bults are red is 2 The erobasic.pdf1 The prebabiity that both bults are red is 2 The erobasic.pdf
1 The prebabiity that both bults are red is 2 The erobasic.pdfADARSHMANISH
 
1 The paternal age appears to play an important role on the.pdf
1 The paternal age appears to play an important role on the.pdf1 The paternal age appears to play an important role on the.pdf
1 The paternal age appears to play an important role on the.pdfADARSHMANISH
 
1 The meteorological Department has issued a statement ment.pdf
1 The meteorological Department has issued a statement ment.pdf1 The meteorological Department has issued a statement ment.pdf
1 The meteorological Department has issued a statement ment.pdfADARSHMANISH
 
1 The idea underlying _____ is that satisfaction results fr.pdf
1 The idea underlying _____ is that satisfaction results fr.pdf1 The idea underlying _____ is that satisfaction results fr.pdf
1 The idea underlying _____ is that satisfaction results fr.pdfADARSHMANISH
 
1 The Great Wars In a land far far away there lived a mig.pdf
1 The Great Wars In a land far far away there lived a mig.pdf1 The Great Wars In a land far far away there lived a mig.pdf
1 The Great Wars In a land far far away there lived a mig.pdfADARSHMANISH
 

Más de ADARSHMANISH (20)

1 Tiene sentido que Spanish Vines considere ingresar al me.pdf
1 Tiene sentido que Spanish Vines considere ingresar al me.pdf1 Tiene sentido que Spanish Vines considere ingresar al me.pdf
1 Tiene sentido que Spanish Vines considere ingresar al me.pdf
 
1 The bones within the middle ear are the least dense bone.pdf
1 The bones within the middle ear are the least dense bone.pdf1 The bones within the middle ear are the least dense bone.pdf
1 The bones within the middle ear are the least dense bone.pdf
 
1 Trkiye esnek bir kur rejimine sahiptir Geniletici bir m.pdf
1 Trkiye esnek bir kur rejimine sahiptir Geniletici bir m.pdf1 Trkiye esnek bir kur rejimine sahiptir Geniletici bir m.pdf
1 Trkiye esnek bir kur rejimine sahiptir Geniletici bir m.pdf
 
1 Transaction management deals with the problems of always .pdf
1 Transaction management deals with the problems of always .pdf1 Transaction management deals with the problems of always .pdf
1 Transaction management deals with the problems of always .pdf
 
1 True or False Magma and Lava are both Melted Rock the.pdf
1 True or False Magma and Lava are both Melted Rock the.pdf1 True or False Magma and Lava are both Melted Rock the.pdf
1 True or False Magma and Lava are both Melted Rock the.pdf
 
1 To what extent do you think people choose their own heal.pdf
1 To what extent do you think people choose their own heal.pdf1 To what extent do you think people choose their own heal.pdf
1 To what extent do you think people choose their own heal.pdf
 
1 three additional features EmployeeID int salary as d.pdf
1 three additional features EmployeeID int salary as d.pdf1 three additional features EmployeeID int salary as d.pdf
1 three additional features EmployeeID int salary as d.pdf
 
1 The upper level of the informatics stack Focuses on in.pdf
1 The upper level of the informatics stack Focuses on in.pdf1 The upper level of the informatics stack Focuses on in.pdf
1 The upper level of the informatics stack Focuses on in.pdf
 
1 The table below is the data for an economy 4 Marks ITE.pdf
1 The table below is the data for an economy 4 Marks ITE.pdf1 The table below is the data for an economy 4 Marks ITE.pdf
1 The table below is the data for an economy 4 Marks ITE.pdf
 
1 The Successiveapproximation converter has a longer conve.pdf
1 The Successiveapproximation converter has a longer conve.pdf1 The Successiveapproximation converter has a longer conve.pdf
1 The Successiveapproximation converter has a longer conve.pdf
 
1 The skin is made up of the and the 2 convey sensations w.pdf
1 The skin is made up of the and the 2 convey sensations w.pdf1 The skin is made up of the and the 2 convey sensations w.pdf
1 The skin is made up of the and the 2 convey sensations w.pdf
 
1 The proton motive force PMF generated by the electron t.pdf
1 The proton motive force PMF generated by the electron t.pdf1 The proton motive force PMF generated by the electron t.pdf
1 The proton motive force PMF generated by the electron t.pdf
 
1 The production possibilities frontier I Suppose Japan pro.pdf
1 The production possibilities frontier I Suppose Japan pro.pdf1 The production possibilities frontier I Suppose Japan pro.pdf
1 The production possibilities frontier I Suppose Japan pro.pdf
 
1 The Port of Prince Rupert is BCs second largest port an.pdf
1 The Port of Prince Rupert is BCs second largest port an.pdf1 The Port of Prince Rupert is BCs second largest port an.pdf
1 The Port of Prince Rupert is BCs second largest port an.pdf
 
1 The patient a 12yearold boy shows several areas of to.pdf
1 The patient a 12yearold boy shows several areas of to.pdf1 The patient a 12yearold boy shows several areas of to.pdf
1 The patient a 12yearold boy shows several areas of to.pdf
 
1 The prebabiity that both bults are red is 2 The erobasic.pdf
1 The prebabiity that both bults are red is 2 The erobasic.pdf1 The prebabiity that both bults are red is 2 The erobasic.pdf
1 The prebabiity that both bults are red is 2 The erobasic.pdf
 
1 The paternal age appears to play an important role on the.pdf
1 The paternal age appears to play an important role on the.pdf1 The paternal age appears to play an important role on the.pdf
1 The paternal age appears to play an important role on the.pdf
 
1 The meteorological Department has issued a statement ment.pdf
1 The meteorological Department has issued a statement ment.pdf1 The meteorological Department has issued a statement ment.pdf
1 The meteorological Department has issued a statement ment.pdf
 
1 The idea underlying _____ is that satisfaction results fr.pdf
1 The idea underlying _____ is that satisfaction results fr.pdf1 The idea underlying _____ is that satisfaction results fr.pdf
1 The idea underlying _____ is that satisfaction results fr.pdf
 
1 The Great Wars In a land far far away there lived a mig.pdf
1 The Great Wars In a land far far away there lived a mig.pdf1 The Great Wars In a land far far away there lived a mig.pdf
1 The Great Wars In a land far far away there lived a mig.pdf
 

Último

Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
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.christianmathematics
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
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.MaryamAhmad92
 
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 POSCeline George
 
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...pradhanghanshyam7136
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
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 17Celine George
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
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 17Celine George
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
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.pptxMaritesTamaniVerdade
 
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.pdfNirmal Dwivedi
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 

Último (20)

Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
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.
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
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.
 
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
 
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...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
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
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
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
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
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
 
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
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 

1 Show assembly language corresponding to the following C++.pdf

  • 1. 1. Show assembly language corresponding to the following C++ statement: while (x<=10) { S=S+x; x++; } 2. Show the difference between compiler output and interpreter output for the following source input: A = 25; B = -25; if (A>B) cout< 3. Show the lexical tokens corresponding to the following C++ source input: if (x>=16.5) x=x*.1; else cout< 4. Show the sequence of atoms put out by the parser, and show the syntax tree corresponding to the following C++ source input: S = A + C D * S - D / S; 5. Show, in assembly language for a machine of your choice, the output of the code generator for the following atom string: (SUB,X,Y,Temp1) (ADD,W,Z,Temp2) (TEST,Temp1,>,Temp2,L1) (JUMP,L2) (LBL,L1) (MOVE,X,Y) (JUMP,L3) (LBL,L2) (MOVE,Y,X) (LBL,L3) 6. If the only computer you have is a Mac (for which you already have a C++ compiler), show how you can produce a C++ compiler for the SUN computer, without writing any assembly or machine language. . Show how Ada compiler can be bootstrapped in two steps on a PC computer