Thursday, June 15, 2006

BITWISE OPERATOINS

Refer:
http://graphics.stanford.edu/~seander/bithacks.html

Register Storage Class

register is used to define local variables that should be stored in a register instead of RAM. This means that the variable has a maximum size equal to the register size (usually one word) and cant have the unary '&' operator applied to it (as it does not have a memory location).
{
register int Miles;
}
Register should only be used for variables that require quick access - such as counters. It should also be noted that defining 'register' goes not mean that the variable will be stored in a register. It means that it MIGHT be stored in a register - depending on hardware and implimentation restrictions.

Duplicate Characters deletion - String Operation

String Operation
Duplicate Characters deletion
/*
Name: Duplicate Characters deletion
Copyright: StarSoft
Author: Vijayakumar M
Date: 28/04/06 11:14
Description: To Remove Duplicate
characters in a string.
*/
#include
#include
#include
main()
{
char string[40]="thats goods super star";
char *p= string;
int i, j;
printf( "%s\n", string );
for( i=0;i {
for( j=i+1; j {
if( string[i]==string[j])
*(p+j)='*';
}
}
printf( "%s\n", string );
for( i=0;i {
if( string[i] != '*' )
printf( "%c", string[i] );
}
   getch();
}

Which elements are stored in stack?

In computer science, a stack is a temporary abstract data type and data structure based on the principle of Last In First Out (LIFO).
Stacks are very widely and extensively used in modern computer systems, and are usually implemented through a combination of hardware and software features.

A stack-based computer system is one that stores temporary information primarily in stacks, rather than hardware CPU registers (a register-based computer system).

how to find give no is 2 power of n

f=( ( no & ( no-1 ) ) == 0 )

if( f == 1)
printf( "The Given Number is Power of %d", no );
else
printf( "The Given Number is not Power of %d", no );

BITWISE OPERATIONS

#define SET_BIT( _X_, _NO_ ) ( 1<<(_X_-1)) _NO_
#define RESET_BIT( _X_, _NO_ ) ~( ( 1<<(_X_-1) ) ) & _NO_
#define SWAP_BIT( _X_, _NO_ ) ( 1<<(_X_-1)) ^ _NO_

Standards Other than DVB

1. ATSC
The Advanced Television Systems Committee (ATSC) is the group that helped to develop the new digital television standard for the United States, also adopted by Canada, Mexico, and South Korea and being considered by other countries.It is intended to replace the NTSC system and produce wide screen 16:9 images up to 1920×1080 pixels in size—more than six times the display resolution of the earlier standard.
2. ISDBIntegrated Services Digital Broadcasting (ISDB) is the digital television (DTV) and digital audio broadcasting (DAB) format that Japan has created toallow radio and television stations there to convert to digital.
3. ARIB
The Association of Radio Industries and Businesses, commonly known as ARIB, is a standardization organization in Japan.
ARIB is designated as the center of promotion of the efficient use of the radio spectrum and designated frequency change support agency.
4. SBTVD
Brazilian Digital Television System is a proposed digital television standard for Brazil.

Wednesday, June 14, 2006

What is embedded system?

Electrical control system which is designed to perform predefined specific function with combination of computer hardware and software.

RISC processor

Acronym for Reduced Instruction Set Computer. A microprocessor that carries out fewer instructions than traditional microprocessors so that it can work more quickly.

Direct Memory Access( DMA )

A technique for transferring data from main memory(not only main memory any type of memory) to a device without passing it through the CPU.

What is teltext?

Teletext is an information retrieval service provided by television broadcast companies. Teletext pages can be viewed on television sets with suitable decoders. They offer a range of text-based information, usually including national, international and sporting news, weather and TV schedules. Subtitle (or closed caption) information is also transmitted in the teletext signal.

What is preemptive scheduler?

A scheduler that may switch between threads at any time.