SlideShare a Scribd company logo
1 of 10
Download to read offline
Answer:
1)
.LC0:
.string "Enter the value of N "
.LC1:
.string "%d"
.LC2:
.string "Enter the numbers "
.LC3:
.string "The numbers arranged in ascending order are given below "
.LC4:
.string "%d "
main:
pushq %rbp
movq %rsp, %rbp
subq $144, %rsp
movl $.LC0, %edi
call puts
leaq -16(%rbp), %rax
movq %rax, %rsi
movl $.LC1, %edi
movl $0, %eax
call scanf
movl $.LC2, %edi
call puts
movl $0, -4(%rbp)
.L3:
movl -16(%rbp), %eax
cmpl %eax, -4(%rbp)
jge .L2
leaq -144(%rbp), %rax
movl -4(%rbp), %edx
movslq %edx, %rdx
salq $2, %rdx
addq %rdx, %rax
movq %rax, %rsi
movl $.LC1, %edi
movl $0, %eax
call scanf
addl $1, -4(%rbp)
jmp .L3
.L2:
movl $0, -4(%rbp)
.L8:
movl -16(%rbp), %eax
cmpl %eax, -4(%rbp)
jge .L4
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
.L7:
movl -16(%rbp), %eax
cmpl %eax, -8(%rbp)
jge .L5
movl -4(%rbp), %eax
cltq
movl -144(%rbp,%rax,4), %edx
movl -8(%rbp), %eax
cltq
movl -144(%rbp,%rax,4), %eax
cmpl %eax, %edx
jle .L6
movl -4(%rbp), %eax
cltq
movl -144(%rbp,%rax,4), %eax
movl %eax, -12(%rbp)
movl -8(%rbp), %eax
cltq
movl -144(%rbp,%rax,4), %edx
movl -4(%rbp), %eax
cltq
movl %edx, -144(%rbp,%rax,4)
movl -8(%rbp), %eax
cltq
movl -12(%rbp), %edx
movl %edx, -144(%rbp,%rax,4)
.L6:
addl $1, -8(%rbp)
jmp .L7
.L5:
addl $1, -4(%rbp)
jmp .L8
.L4:
movl $.LC3, %edi
call puts
movl $0, -4(%rbp)
.L10:
movl -16(%rbp), %eax
cmpl %eax, -4(%rbp)
jge .L9
movl -4(%rbp), %eax
cltq
movl -144(%rbp,%rax,4), %eax
movl %eax, %esi
movl $.LC4, %edi
movl $0, %eax
call printf
addl $1, -4(%rbp)
jmp .L10
.L9:
movl $0, %eax
leave
ret
2)
.zero 1
.LC0:
.string "Enter two numbers: "
.LC1:
.string "Product = "
main:
pushq %rbp
movq %rsp, %rbp
subq $32, %rsp
movl $.LC0, %esi
movl std::cout, %edi
call std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)
leaq -8(%rbp), %rax
movq %rax, %rsi
movl std::cin, %edi
call std::basic_istream >::operator>>(float&)
movq %rax, %rdx
leaq -12(%rbp), %rax
movq %rax, %rsi
movq %rdx, %rdi
call std::basic_istream >::operator>>(float&)
movss -8(%rbp), %xmm1
movss -12(%rbp), %xmm0
mulss %xmm1, %xmm0
movss %xmm0, -4(%rbp)
movl $.LC1, %esi
movl std::cout, %edi
call std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)
movq %rax, %rdx
movl -4(%rbp), %eax
movl %eax, -20(%rbp)
movss -20(%rbp), %xmm0
movq %rdx, %rdi
call std::basic_ostream >::operator<<(float)
movl $0, %eax
leave
ret
__static_initialization_and_destruction_0(int, int):
pushq %rbp
movq %rsp, %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
cmpl $1, -4(%rbp)
jne .L5
cmpl $65535, -8(%rbp)
jne .L5
movl std::__ioinit, %edi
call std::ios_base::Init::Init()
movl $__dso_handle, %edx
movl std::__ioinit, %esi
movl std::ios_base::Init::~Init(), %edi
call __cxa_atexit
.L5:
nop
leave
ret
pushq %rbp
movq %rsp, %rbp
movl $65535, %esi
movl $1, %edi
call __static_initialization_and_destruction_0(int, int)
popq %rbp
ret
Solution
Answer:
1)
.LC0:
.string "Enter the value of N "
.LC1:
.string "%d"
.LC2:
.string "Enter the numbers "
.LC3:
.string "The numbers arranged in ascending order are given below "
.LC4:
.string "%d "
main:
pushq %rbp
movq %rsp, %rbp
subq $144, %rsp
movl $.LC0, %edi
call puts
leaq -16(%rbp), %rax
movq %rax, %rsi
movl $.LC1, %edi
movl $0, %eax
call scanf
movl $.LC2, %edi
call puts
movl $0, -4(%rbp)
.L3:
movl -16(%rbp), %eax
cmpl %eax, -4(%rbp)
jge .L2
leaq -144(%rbp), %rax
movl -4(%rbp), %edx
movslq %edx, %rdx
salq $2, %rdx
addq %rdx, %rax
movq %rax, %rsi
movl $.LC1, %edi
movl $0, %eax
call scanf
addl $1, -4(%rbp)
jmp .L3
.L2:
movl $0, -4(%rbp)
.L8:
movl -16(%rbp), %eax
cmpl %eax, -4(%rbp)
jge .L4
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
.L7:
movl -16(%rbp), %eax
cmpl %eax, -8(%rbp)
jge .L5
movl -4(%rbp), %eax
cltq
movl -144(%rbp,%rax,4), %edx
movl -8(%rbp), %eax
cltq
movl -144(%rbp,%rax,4), %eax
cmpl %eax, %edx
jle .L6
movl -4(%rbp), %eax
cltq
movl -144(%rbp,%rax,4), %eax
movl %eax, -12(%rbp)
movl -8(%rbp), %eax
cltq
movl -144(%rbp,%rax,4), %edx
movl -4(%rbp), %eax
cltq
movl %edx, -144(%rbp,%rax,4)
movl -8(%rbp), %eax
cltq
movl -12(%rbp), %edx
movl %edx, -144(%rbp,%rax,4)
.L6:
addl $1, -8(%rbp)
jmp .L7
.L5:
addl $1, -4(%rbp)
jmp .L8
.L4:
movl $.LC3, %edi
call puts
movl $0, -4(%rbp)
.L10:
movl -16(%rbp), %eax
cmpl %eax, -4(%rbp)
jge .L9
movl -4(%rbp), %eax
cltq
movl -144(%rbp,%rax,4), %eax
movl %eax, %esi
movl $.LC4, %edi
movl $0, %eax
call printf
addl $1, -4(%rbp)
jmp .L10
.L9:
movl $0, %eax
leave
ret
2)
.zero 1
.LC0:
.string "Enter two numbers: "
.LC1:
.string "Product = "
main:
pushq %rbp
movq %rsp, %rbp
subq $32, %rsp
movl $.LC0, %esi
movl std::cout, %edi
call std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)
leaq -8(%rbp), %rax
movq %rax, %rsi
movl std::cin, %edi
call std::basic_istream >::operator>>(float&)
movq %rax, %rdx
leaq -12(%rbp), %rax
movq %rax, %rsi
movq %rdx, %rdi
call std::basic_istream >::operator>>(float&)
movss -8(%rbp), %xmm1
movss -12(%rbp), %xmm0
mulss %xmm1, %xmm0
movss %xmm0, -4(%rbp)
movl $.LC1, %esi
movl std::cout, %edi
call std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)
movq %rax, %rdx
movl -4(%rbp), %eax
movl %eax, -20(%rbp)
movss -20(%rbp), %xmm0
movq %rdx, %rdi
call std::basic_ostream >::operator<<(float)
movl $0, %eax
leave
ret
__static_initialization_and_destruction_0(int, int):
pushq %rbp
movq %rsp, %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
cmpl $1, -4(%rbp)
jne .L5
cmpl $65535, -8(%rbp)
jne .L5
movl std::__ioinit, %edi
call std::ios_base::Init::Init()
movl $__dso_handle, %edx
movl std::__ioinit, %esi
movl std::ios_base::Init::~Init(), %edi
call __cxa_atexit
.L5:
nop
leave
ret
pushq %rbp
movq %rsp, %rbp
movl $65535, %esi
movl $1, %edi
call __static_initialization_and_destruction_0(int, int)
popq %rbp
ret

More Related Content

Similar to Answer1).LC0 .string Enter the value of N .LC1 .st.pdf

rop heap attacks cfi int overflows computer security
rop heap attacks cfi int overflows computer securityrop heap attacks cfi int overflows computer security
rop heap attacks cfi int overflows computer securityFannyBellows
 
Data Manipulation Using R (& dplyr)
Data Manipulation Using R (& dplyr)Data Manipulation Using R (& dplyr)
Data Manipulation Using R (& dplyr)Ram Narasimhan
 
Introduction to Assembly Language
Introduction to Assembly LanguageIntroduction to Assembly Language
Introduction to Assembly LanguageMotaz Saad
 
Linux Binary Exploitation - Return-oritend Programing
Linux Binary Exploitation - Return-oritend ProgramingLinux Binary Exploitation - Return-oritend Programing
Linux Binary Exploitation - Return-oritend ProgramingAngel Boy
 
Lisp for Python Programmers
Lisp for Python ProgrammersLisp for Python Programmers
Lisp for Python ProgrammersVsevolod Dyomkin
 
PBL1-v1-004j.pptx
PBL1-v1-004j.pptxPBL1-v1-004j.pptx
PBL1-v1-004j.pptxNAIST
 
HBaseCon2017 Warp 10, a novel approach to managing and analyzing time series ...
HBaseCon2017 Warp 10, a novel approach to managing and analyzing time series ...HBaseCon2017 Warp 10, a novel approach to managing and analyzing time series ...
HBaseCon2017 Warp 10, a novel approach to managing and analyzing time series ...HBaseCon
 
LDAP Synchronization Connector (LSC)
LDAP Synchronization Connector (LSC)LDAP Synchronization Connector (LSC)
LDAP Synchronization Connector (LSC)Jonathan Clarke
 
Shellcodes for ARM: Your Pills Don't Work on Me, x86
Shellcodes for ARM: Your Pills Don't Work on Me, x86Shellcodes for ARM: Your Pills Don't Work on Me, x86
Shellcodes for ARM: Your Pills Don't Work on Me, x86Svetlana Gaivoronski
 
Write an MPI program that implements a shell-sort like parallel algo.pdf
Write an MPI program that implements a shell-sort like parallel algo.pdfWrite an MPI program that implements a shell-sort like parallel algo.pdf
Write an MPI program that implements a shell-sort like parallel algo.pdfbharatchawla141
 
Go Go Gadget! - An Intro to Return Oriented Programming (ROP)
Go Go Gadget! - An Intro to Return Oriented Programming (ROP)Go Go Gadget! - An Intro to Return Oriented Programming (ROP)
Go Go Gadget! - An Intro to Return Oriented Programming (ROP)Miguel Arroyo
 
Locks? We Don't Need No Stinkin' Locks - Michael Barker
Locks? We Don't Need No Stinkin' Locks - Michael BarkerLocks? We Don't Need No Stinkin' Locks - Michael Barker
Locks? We Don't Need No Stinkin' Locks - Michael BarkerJAX London
 
Lock? We don't need no stinkin' locks!
Lock? We don't need no stinkin' locks!Lock? We don't need no stinkin' locks!
Lock? We don't need no stinkin' locks!Michael Barker
 
UNIX SHELL IN DBA EVERYDAY
UNIX SHELL IN DBA EVERYDAYUNIX SHELL IN DBA EVERYDAY
UNIX SHELL IN DBA EVERYDAYSignis Vavere
 
Load-time Hacking using LD_PRELOAD
Load-time Hacking using LD_PRELOADLoad-time Hacking using LD_PRELOAD
Load-time Hacking using LD_PRELOADDharmalingam Ganesan
 

Similar to Answer1).LC0 .string Enter the value of N .LC1 .st.pdf (20)

rop heap attacks cfi int overflows computer security
rop heap attacks cfi int overflows computer securityrop heap attacks cfi int overflows computer security
rop heap attacks cfi int overflows computer security
 
Qemu JIT Code Generator and System Emulation
Qemu JIT Code Generator and System EmulationQemu JIT Code Generator and System Emulation
Qemu JIT Code Generator and System Emulation
 
R/C++ talk at earl 2014
R/C++ talk at earl 2014R/C++ talk at earl 2014
R/C++ talk at earl 2014
 
Data Manipulation Using R (& dplyr)
Data Manipulation Using R (& dplyr)Data Manipulation Using R (& dplyr)
Data Manipulation Using R (& dplyr)
 
Introduction to Assembly Language
Introduction to Assembly LanguageIntroduction to Assembly Language
Introduction to Assembly Language
 
Linux Binary Exploitation - Return-oritend Programing
Linux Binary Exploitation - Return-oritend ProgramingLinux Binary Exploitation - Return-oritend Programing
Linux Binary Exploitation - Return-oritend Programing
 
Lisp for Python Programmers
Lisp for Python ProgrammersLisp for Python Programmers
Lisp for Python Programmers
 
PBL1-v1-004j.pptx
PBL1-v1-004j.pptxPBL1-v1-004j.pptx
PBL1-v1-004j.pptx
 
HBaseCon2017 Warp 10, a novel approach to managing and analyzing time series ...
HBaseCon2017 Warp 10, a novel approach to managing and analyzing time series ...HBaseCon2017 Warp 10, a novel approach to managing and analyzing time series ...
HBaseCon2017 Warp 10, a novel approach to managing and analyzing time series ...
 
assembly
assemblyassembly
assembly
 
LDAP Synchronization Connector (LSC)
LDAP Synchronization Connector (LSC)LDAP Synchronization Connector (LSC)
LDAP Synchronization Connector (LSC)
 
Shellcodes for ARM: Your Pills Don't Work on Me, x86
Shellcodes for ARM: Your Pills Don't Work on Me, x86Shellcodes for ARM: Your Pills Don't Work on Me, x86
Shellcodes for ARM: Your Pills Don't Work on Me, x86
 
user2015 keynote talk
user2015 keynote talkuser2015 keynote talk
user2015 keynote talk
 
Write an MPI program that implements a shell-sort like parallel algo.pdf
Write an MPI program that implements a shell-sort like parallel algo.pdfWrite an MPI program that implements a shell-sort like parallel algo.pdf
Write an MPI program that implements a shell-sort like parallel algo.pdf
 
Go Go Gadget! - An Intro to Return Oriented Programming (ROP)
Go Go Gadget! - An Intro to Return Oriented Programming (ROP)Go Go Gadget! - An Intro to Return Oriented Programming (ROP)
Go Go Gadget! - An Intro to Return Oriented Programming (ROP)
 
Locks? We Don't Need No Stinkin' Locks - Michael Barker
Locks? We Don't Need No Stinkin' Locks - Michael BarkerLocks? We Don't Need No Stinkin' Locks - Michael Barker
Locks? We Don't Need No Stinkin' Locks - Michael Barker
 
Lock? We don't need no stinkin' locks!
Lock? We don't need no stinkin' locks!Lock? We don't need no stinkin' locks!
Lock? We don't need no stinkin' locks!
 
UNIX SHELL IN DBA EVERYDAY
UNIX SHELL IN DBA EVERYDAYUNIX SHELL IN DBA EVERYDAY
UNIX SHELL IN DBA EVERYDAY
 
UNIX SHELL IN DBA EVERYDAY
UNIX SHELL IN DBA EVERYDAYUNIX SHELL IN DBA EVERYDAY
UNIX SHELL IN DBA EVERYDAY
 
Load-time Hacking using LD_PRELOAD
Load-time Hacking using LD_PRELOADLoad-time Hacking using LD_PRELOAD
Load-time Hacking using LD_PRELOAD
 

More from annaiwatertreatment

1.i. Oxygen is the final electron acceptor for the electron transpor.pdf
1.i. Oxygen is the final electron acceptor for the electron transpor.pdf1.i. Oxygen is the final electron acceptor for the electron transpor.pdf
1.i. Oxygen is the final electron acceptor for the electron transpor.pdfannaiwatertreatment
 
The transverse electric and transverse magnetic (TEM) wave traveling.pdf
The transverse electric and transverse magnetic (TEM) wave traveling.pdfThe transverse electric and transverse magnetic (TEM) wave traveling.pdf
The transverse electric and transverse magnetic (TEM) wave traveling.pdfannaiwatertreatment
 
The fraction for of .15 = 32000 I convereted .15 to a decimal whi.pdf
The fraction for of .15 = 32000 I convereted .15 to a decimal whi.pdfThe fraction for of .15 = 32000 I convereted .15 to a decimal whi.pdf
The fraction for of .15 = 32000 I convereted .15 to a decimal whi.pdfannaiwatertreatment
 
Solution You sound a tone and then squirt pickle juice in a child.pdf
Solution You sound a tone and then squirt pickle juice in a child.pdfSolution You sound a tone and then squirt pickle juice in a child.pdf
Solution You sound a tone and then squirt pickle juice in a child.pdfannaiwatertreatment
 
Anisole is a weakly polar ether compound.Acetone is a polar ketone.pdf
Anisole is a weakly polar ether compound.Acetone is a polar ketone.pdfAnisole is a weakly polar ether compound.Acetone is a polar ketone.pdf
Anisole is a weakly polar ether compound.Acetone is a polar ketone.pdfannaiwatertreatment
 
No , its located towards cytoplasmic side. Its used as precursor.pdf
No , its located towards cytoplasmic side. Its used as precursor.pdfNo , its located towards cytoplasmic side. Its used as precursor.pdf
No , its located towards cytoplasmic side. Its used as precursor.pdfannaiwatertreatment
 
(32 , 132)Solution(32 , 132).pdf
(32 , 132)Solution(32 , 132).pdf(32 , 132)Solution(32 , 132).pdf
(32 , 132)Solution(32 , 132).pdfannaiwatertreatment
 
HI,The image is not clear,but i tried my best to decode it.As far .pdf
HI,The image is not clear,but i tried my best to decode it.As far .pdfHI,The image is not clear,but i tried my best to decode it.As far .pdf
HI,The image is not clear,but i tried my best to decode it.As far .pdfannaiwatertreatment
 
Let A,B and C be the events that coin of each type respectively were.pdf
Let A,B and C be the events that coin of each type respectively were.pdfLet A,B and C be the events that coin of each type respectively were.pdf
Let A,B and C be the events that coin of each type respectively were.pdfannaiwatertreatment
 
International Portfoilo investment is affected by following few fact.pdf
International Portfoilo investment is affected by following few fact.pdfInternational Portfoilo investment is affected by following few fact.pdf
International Portfoilo investment is affected by following few fact.pdfannaiwatertreatment
 
Hi!For the first reaction, Iron (Fe) is going from a positive oxid.pdf
Hi!For the first reaction, Iron (Fe) is going from a positive oxid.pdfHi!For the first reaction, Iron (Fe) is going from a positive oxid.pdf
Hi!For the first reaction, Iron (Fe) is going from a positive oxid.pdfannaiwatertreatment
 
If we design any page or devoleped any code we use the word shield a.pdf
If we design any page or devoleped any code we use the word shield a.pdfIf we design any page or devoleped any code we use the word shield a.pdf
If we design any page or devoleped any code we use the word shield a.pdfannaiwatertreatment
 
import school.; import school.courses.;public class Main { p.pdf
import school.; import school.courses.;public class Main { p.pdfimport school.; import school.courses.;public class Main { p.pdf
import school.; import school.courses.;public class Main { p.pdfannaiwatertreatment
 
Det M of 2x2 matrix can be any value from -infty to +inftyE) B1+B2.pdf
Det M of 2x2 matrix can be any value from -infty to +inftyE) B1+B2.pdfDet M of 2x2 matrix can be any value from -infty to +inftyE) B1+B2.pdf
Det M of 2x2 matrix can be any value from -infty to +inftyE) B1+B2.pdfannaiwatertreatment
 
Aspirin is acetylsalicylic acid. As the compound ages, small amounts.pdf
Aspirin is acetylsalicylic acid. As the compound ages, small amounts.pdfAspirin is acetylsalicylic acid. As the compound ages, small amounts.pdf
Aspirin is acetylsalicylic acid. As the compound ages, small amounts.pdfannaiwatertreatment
 
referenceSolution reference.pdf
 referenceSolution reference.pdf referenceSolution reference.pdf
referenceSolution reference.pdfannaiwatertreatment
 
B. The solution has more hydroxide ions than hydronium ions. .pdf
  B. The solution has more hydroxide ions than hydronium ions.        .pdf  B. The solution has more hydroxide ions than hydronium ions.        .pdf
B. The solution has more hydroxide ions than hydronium ions. .pdfannaiwatertreatment
 
they are the atomic number of those element so fr.pdf
                     they are the atomic number of those element so fr.pdf                     they are the atomic number of those element so fr.pdf
they are the atomic number of those element so fr.pdfannaiwatertreatment
 
s(s+1.7x10-3)=2.1x10-10 s=1.24x10^-7 .pdf
                     s(s+1.7x10-3)=2.1x10-10 s=1.24x10^-7            .pdf                     s(s+1.7x10-3)=2.1x10-10 s=1.24x10^-7            .pdf
s(s+1.7x10-3)=2.1x10-10 s=1.24x10^-7 .pdfannaiwatertreatment
 

More from annaiwatertreatment (20)

1.i. Oxygen is the final electron acceptor for the electron transpor.pdf
1.i. Oxygen is the final electron acceptor for the electron transpor.pdf1.i. Oxygen is the final electron acceptor for the electron transpor.pdf
1.i. Oxygen is the final electron acceptor for the electron transpor.pdf
 
The transverse electric and transverse magnetic (TEM) wave traveling.pdf
The transverse electric and transverse magnetic (TEM) wave traveling.pdfThe transverse electric and transverse magnetic (TEM) wave traveling.pdf
The transverse electric and transverse magnetic (TEM) wave traveling.pdf
 
The fraction for of .15 = 32000 I convereted .15 to a decimal whi.pdf
The fraction for of .15 = 32000 I convereted .15 to a decimal whi.pdfThe fraction for of .15 = 32000 I convereted .15 to a decimal whi.pdf
The fraction for of .15 = 32000 I convereted .15 to a decimal whi.pdf
 
Solution You sound a tone and then squirt pickle juice in a child.pdf
Solution You sound a tone and then squirt pickle juice in a child.pdfSolution You sound a tone and then squirt pickle juice in a child.pdf
Solution You sound a tone and then squirt pickle juice in a child.pdf
 
Anisole is a weakly polar ether compound.Acetone is a polar ketone.pdf
Anisole is a weakly polar ether compound.Acetone is a polar ketone.pdfAnisole is a weakly polar ether compound.Acetone is a polar ketone.pdf
Anisole is a weakly polar ether compound.Acetone is a polar ketone.pdf
 
No , its located towards cytoplasmic side. Its used as precursor.pdf
No , its located towards cytoplasmic side. Its used as precursor.pdfNo , its located towards cytoplasmic side. Its used as precursor.pdf
No , its located towards cytoplasmic side. Its used as precursor.pdf
 
(32 , 132)Solution(32 , 132).pdf
(32 , 132)Solution(32 , 132).pdf(32 , 132)Solution(32 , 132).pdf
(32 , 132)Solution(32 , 132).pdf
 
HI,The image is not clear,but i tried my best to decode it.As far .pdf
HI,The image is not clear,but i tried my best to decode it.As far .pdfHI,The image is not clear,but i tried my best to decode it.As far .pdf
HI,The image is not clear,but i tried my best to decode it.As far .pdf
 
Let A,B and C be the events that coin of each type respectively were.pdf
Let A,B and C be the events that coin of each type respectively were.pdfLet A,B and C be the events that coin of each type respectively were.pdf
Let A,B and C be the events that coin of each type respectively were.pdf
 
International Portfoilo investment is affected by following few fact.pdf
International Portfoilo investment is affected by following few fact.pdfInternational Portfoilo investment is affected by following few fact.pdf
International Portfoilo investment is affected by following few fact.pdf
 
Hi!For the first reaction, Iron (Fe) is going from a positive oxid.pdf
Hi!For the first reaction, Iron (Fe) is going from a positive oxid.pdfHi!For the first reaction, Iron (Fe) is going from a positive oxid.pdf
Hi!For the first reaction, Iron (Fe) is going from a positive oxid.pdf
 
If we design any page or devoleped any code we use the word shield a.pdf
If we design any page or devoleped any code we use the word shield a.pdfIf we design any page or devoleped any code we use the word shield a.pdf
If we design any page or devoleped any code we use the word shield a.pdf
 
import school.; import school.courses.;public class Main { p.pdf
import school.; import school.courses.;public class Main { p.pdfimport school.; import school.courses.;public class Main { p.pdf
import school.; import school.courses.;public class Main { p.pdf
 
Det M of 2x2 matrix can be any value from -infty to +inftyE) B1+B2.pdf
Det M of 2x2 matrix can be any value from -infty to +inftyE) B1+B2.pdfDet M of 2x2 matrix can be any value from -infty to +inftyE) B1+B2.pdf
Det M of 2x2 matrix can be any value from -infty to +inftyE) B1+B2.pdf
 
Aspirin is acetylsalicylic acid. As the compound ages, small amounts.pdf
Aspirin is acetylsalicylic acid. As the compound ages, small amounts.pdfAspirin is acetylsalicylic acid. As the compound ages, small amounts.pdf
Aspirin is acetylsalicylic acid. As the compound ages, small amounts.pdf
 
referenceSolution reference.pdf
 referenceSolution reference.pdf referenceSolution reference.pdf
referenceSolution reference.pdf
 
B. The solution has more hydroxide ions than hydronium ions. .pdf
  B. The solution has more hydroxide ions than hydronium ions.        .pdf  B. The solution has more hydroxide ions than hydronium ions.        .pdf
B. The solution has more hydroxide ions than hydronium ions. .pdf
 
they are the atomic number of those element so fr.pdf
                     they are the atomic number of those element so fr.pdf                     they are the atomic number of those element so fr.pdf
they are the atomic number of those element so fr.pdf
 
the bond between O and F .pdf
                     the bond between O and F                         .pdf                     the bond between O and F                         .pdf
the bond between O and F .pdf
 
s(s+1.7x10-3)=2.1x10-10 s=1.24x10^-7 .pdf
                     s(s+1.7x10-3)=2.1x10-10 s=1.24x10^-7            .pdf                     s(s+1.7x10-3)=2.1x10-10 s=1.24x10^-7            .pdf
s(s+1.7x10-3)=2.1x10-10 s=1.24x10^-7 .pdf
 

Recently uploaded

Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxMohamed Rizk Khodair
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesAmanpreetKaur157993
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFVivekanand Anglo Vedic Academy
 
Scopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS PublicationsScopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS PublicationsISCOPE Publication
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppCeline George
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi RajagopalEADTU
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnershipsexpandedwebsite
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...Nguyen Thanh Tu Collection
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint23600690
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 

Recently uploaded (20)

Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Scopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS PublicationsScopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS Publications
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 

Answer1).LC0 .string Enter the value of N .LC1 .st.pdf

  • 1. Answer: 1) .LC0: .string "Enter the value of N " .LC1: .string "%d" .LC2: .string "Enter the numbers " .LC3: .string "The numbers arranged in ascending order are given below " .LC4: .string "%d " main: pushq %rbp movq %rsp, %rbp subq $144, %rsp movl $.LC0, %edi call puts leaq -16(%rbp), %rax movq %rax, %rsi movl $.LC1, %edi movl $0, %eax call scanf movl $.LC2, %edi call puts movl $0, -4(%rbp) .L3: movl -16(%rbp), %eax cmpl %eax, -4(%rbp) jge .L2 leaq -144(%rbp), %rax movl -4(%rbp), %edx movslq %edx, %rdx salq $2, %rdx addq %rdx, %rax
  • 2. movq %rax, %rsi movl $.LC1, %edi movl $0, %eax call scanf addl $1, -4(%rbp) jmp .L3 .L2: movl $0, -4(%rbp) .L8: movl -16(%rbp), %eax cmpl %eax, -4(%rbp) jge .L4 movl -4(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) .L7: movl -16(%rbp), %eax cmpl %eax, -8(%rbp) jge .L5 movl -4(%rbp), %eax cltq movl -144(%rbp,%rax,4), %edx movl -8(%rbp), %eax cltq movl -144(%rbp,%rax,4), %eax cmpl %eax, %edx jle .L6 movl -4(%rbp), %eax cltq movl -144(%rbp,%rax,4), %eax movl %eax, -12(%rbp) movl -8(%rbp), %eax cltq movl -144(%rbp,%rax,4), %edx movl -4(%rbp), %eax cltq
  • 3. movl %edx, -144(%rbp,%rax,4) movl -8(%rbp), %eax cltq movl -12(%rbp), %edx movl %edx, -144(%rbp,%rax,4) .L6: addl $1, -8(%rbp) jmp .L7 .L5: addl $1, -4(%rbp) jmp .L8 .L4: movl $.LC3, %edi call puts movl $0, -4(%rbp) .L10: movl -16(%rbp), %eax cmpl %eax, -4(%rbp) jge .L9 movl -4(%rbp), %eax cltq movl -144(%rbp,%rax,4), %eax movl %eax, %esi movl $.LC4, %edi movl $0, %eax call printf addl $1, -4(%rbp) jmp .L10 .L9: movl $0, %eax leave ret 2) .zero 1 .LC0: .string "Enter two numbers: "
  • 4. .LC1: .string "Product = " main: pushq %rbp movq %rsp, %rbp subq $32, %rsp movl $.LC0, %esi movl std::cout, %edi call std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*) leaq -8(%rbp), %rax movq %rax, %rsi movl std::cin, %edi call std::basic_istream >::operator>>(float&) movq %rax, %rdx leaq -12(%rbp), %rax movq %rax, %rsi movq %rdx, %rdi call std::basic_istream >::operator>>(float&) movss -8(%rbp), %xmm1 movss -12(%rbp), %xmm0 mulss %xmm1, %xmm0 movss %xmm0, -4(%rbp) movl $.LC1, %esi movl std::cout, %edi call std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*) movq %rax, %rdx movl -4(%rbp), %eax movl %eax, -20(%rbp) movss -20(%rbp), %xmm0 movq %rdx, %rdi call std::basic_ostream >::operator<<(float) movl $0, %eax leave ret __static_initialization_and_destruction_0(int, int): pushq %rbp
  • 5. movq %rsp, %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) cmpl $1, -4(%rbp) jne .L5 cmpl $65535, -8(%rbp) jne .L5 movl std::__ioinit, %edi call std::ios_base::Init::Init() movl $__dso_handle, %edx movl std::__ioinit, %esi movl std::ios_base::Init::~Init(), %edi call __cxa_atexit .L5: nop leave ret pushq %rbp movq %rsp, %rbp movl $65535, %esi movl $1, %edi call __static_initialization_and_destruction_0(int, int) popq %rbp ret Solution Answer: 1) .LC0: .string "Enter the value of N " .LC1: .string "%d" .LC2: .string "Enter the numbers "
  • 6. .LC3: .string "The numbers arranged in ascending order are given below " .LC4: .string "%d " main: pushq %rbp movq %rsp, %rbp subq $144, %rsp movl $.LC0, %edi call puts leaq -16(%rbp), %rax movq %rax, %rsi movl $.LC1, %edi movl $0, %eax call scanf movl $.LC2, %edi call puts movl $0, -4(%rbp) .L3: movl -16(%rbp), %eax cmpl %eax, -4(%rbp) jge .L2 leaq -144(%rbp), %rax movl -4(%rbp), %edx movslq %edx, %rdx salq $2, %rdx addq %rdx, %rax movq %rax, %rsi movl $.LC1, %edi movl $0, %eax call scanf addl $1, -4(%rbp) jmp .L3 .L2: movl $0, -4(%rbp) .L8:
  • 7. movl -16(%rbp), %eax cmpl %eax, -4(%rbp) jge .L4 movl -4(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) .L7: movl -16(%rbp), %eax cmpl %eax, -8(%rbp) jge .L5 movl -4(%rbp), %eax cltq movl -144(%rbp,%rax,4), %edx movl -8(%rbp), %eax cltq movl -144(%rbp,%rax,4), %eax cmpl %eax, %edx jle .L6 movl -4(%rbp), %eax cltq movl -144(%rbp,%rax,4), %eax movl %eax, -12(%rbp) movl -8(%rbp), %eax cltq movl -144(%rbp,%rax,4), %edx movl -4(%rbp), %eax cltq movl %edx, -144(%rbp,%rax,4) movl -8(%rbp), %eax cltq movl -12(%rbp), %edx movl %edx, -144(%rbp,%rax,4) .L6: addl $1, -8(%rbp) jmp .L7 .L5:
  • 8. addl $1, -4(%rbp) jmp .L8 .L4: movl $.LC3, %edi call puts movl $0, -4(%rbp) .L10: movl -16(%rbp), %eax cmpl %eax, -4(%rbp) jge .L9 movl -4(%rbp), %eax cltq movl -144(%rbp,%rax,4), %eax movl %eax, %esi movl $.LC4, %edi movl $0, %eax call printf addl $1, -4(%rbp) jmp .L10 .L9: movl $0, %eax leave ret 2) .zero 1 .LC0: .string "Enter two numbers: " .LC1: .string "Product = " main: pushq %rbp movq %rsp, %rbp subq $32, %rsp movl $.LC0, %esi movl std::cout, %edi call std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)
  • 9. leaq -8(%rbp), %rax movq %rax, %rsi movl std::cin, %edi call std::basic_istream >::operator>>(float&) movq %rax, %rdx leaq -12(%rbp), %rax movq %rax, %rsi movq %rdx, %rdi call std::basic_istream >::operator>>(float&) movss -8(%rbp), %xmm1 movss -12(%rbp), %xmm0 mulss %xmm1, %xmm0 movss %xmm0, -4(%rbp) movl $.LC1, %esi movl std::cout, %edi call std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*) movq %rax, %rdx movl -4(%rbp), %eax movl %eax, -20(%rbp) movss -20(%rbp), %xmm0 movq %rdx, %rdi call std::basic_ostream >::operator<<(float) movl $0, %eax leave ret __static_initialization_and_destruction_0(int, int): pushq %rbp movq %rsp, %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) cmpl $1, -4(%rbp) jne .L5 cmpl $65535, -8(%rbp) jne .L5 movl std::__ioinit, %edi
  • 10. call std::ios_base::Init::Init() movl $__dso_handle, %edx movl std::__ioinit, %esi movl std::ios_base::Init::~Init(), %edi call __cxa_atexit .L5: nop leave ret pushq %rbp movq %rsp, %rbp movl $65535, %esi movl $1, %edi call __static_initialization_and_destruction_0(int, int) popq %rbp ret