Hamming code is a set of error-correction codes that can be used to detect and correct the errors that can occur when the data is moved or stored from the sende
Prerequisite – Message authentication codes Apart from intruders, the transfer of message between two people also faces other external problems like noise, wh
Given a number n, the task is to generate n bit Gray codes (generate bit patterns from 0 to 2^n-1 such that successive patterns differ by one bit) Examples: Inp
Given a number n, generate bit patterns from 0 to 2^n-1 such that successive patterns differ by one bit. Examples: Following is 2-bit sequence (n = 2) 00 01 11
In the analysis-synthesis model of a compiler, the front end of a compiler translates a source program into an independent intermediate code, then the back end
Code generator converts the intermediate representation of source code into a form that can be readily executed by the machine. A code generator is expected to
Prerequisite – Intermediate Code Generation Three address code is a type of intermediate code which is easy to generate and can be easily converted to machine
Let assume that, you have a c program, then you give the C program to compiler and compiler will produce the output in assembly code.Now, that assembly language
Prerequisite – Three address code in Compiler Loop optimization is the phase after the Intermediate Code Generation. The main intention of this phase is to re
The code optimization in the synthesis phase is a program transformation technique, which tries to improve the intermediate code by making it consume fewer reso
Prerequisite – Binary to/from Gray Code Problem – Write an assembly language program in 8085 microprocessor to convert binary numbers to gray. Example – A
Problem – Write an assembly level language program to convert 8 bit BCD number to its respective ACSII Code. Assumptions – Starting address of program: 2000
Prerequisite – Binary to/from Gray Code Problem – Write a program to convert Binary number to Grey code 8-bit number where starting address is 2000 and the
Problem – Write an assembly language program in 8086 microprocessor to convert 8 bit BCD number to its respective ACSII Code. Assuption – Starting address o
Problem – Write an assembly language program in 8085 microprocessor to convert gray numbers to binary. Example – Algorithm – Load the data from address 20
Problem – Assembly level program in 8085 which converts a binary number into ASCII number. Example – Assumptions – Binary number which have to convert in
Code injection is the malicious injection or introduction of code into an application. The code introduced or injected is capable of compromising database integ
Write a C language code that prints GeeksforGeeks without any main function. Logically it’s seems impossible to write a C program without using a main() funct
We use g++ compiler to turn provided C code into assembly language. To see the assembly code generated by the C compiler, we can use the “-S” option on the
The computer has a unique formatting and text style for displaying the messages related to codes. The <code> tag is used to display the computer code on the web
Caches are the faster memories that are built to deal with the Processor-Memory gap in data read operation, i.e. the time difference in a data read operation in
The <code> tag in HTML is used to define the piece of computer code. During the creation of web pages sometimes there is a need to display computer programming
Prerequisite – Number System and base conversions Excess-3 binary code is a unweighted self-complementary BCD code. Self-Complementary property means that the
Prerequisite – Number System and base conversions Gray Code system is a binary number system in which every successive pair of numbers differs in only one bit