EmbLogic's Blog

Category Archives: Uncategorized

character driver

W’s of character drivers We already know what drivers are, and why we need them. What is so special about character drivers? If we write drivers for byte-oriented operations (or, in C lingo, character-oriented operations), then we refer to them … Continue reading

Posted in Uncategorized | Leave a comment

Multiple Data Compression

Posted in Uncategorized | Leave a comment

file i/o(open a file which contains passwords and login by matching the password entered by user.)

#include<stdio.h> #include<string.h> #include<stdlib.h> int main() { char *pwd=NULL; int ch=0,i=0,ret; char *buff; pwd=malloc(sizeof(char) *10); buff=malloc(sizeof(char) *10); FILE *fptr = NULL; fptr=fopen(“hello.txt”,”r+”); if(fptr == NULL) { perror(“fopen”); return -1; } else printf(“file is opened successfully\n”); printf(“enter the password\n”); gets(pwd); ch=getc(fptr); while(ch!=EOF) … Continue reading

Posted in Uncategorized | Leave a comment

program for simple queue

@this a program for simple queue to push pop and display the elements of the queue @ 1.1 log @Initial revision @ text @#include”header.h” int main() { void *queue; int f,r; f=r=-1; int ch; do { printf(“1:push\n”); printf(“2:pop\n”); printf(“3:display\n”); printf(“4:exit\n”); … Continue reading

Posted in Uncategorized | Leave a comment

DIFFERENCE BETWEEN NUL AND NULL

NULL 1 IT is macrodefined in for the null pointer . 2 NULL CAN BE DEFINED AS ((void*)0) 3 size of NULL= 4BYTES NUL 1 IT IS A USER DEFINED VARIABLE. 2 IST CHAR IN THE ASCII TABLE. 3 IT … Continue reading

Posted in Uncategorized | Leave a comment

Big and Little Endian

Big and Little Endian Basic Memory Concepts In order to understand the concept of big and little endian, you need to understand memory. Fortunately, we only need a very high level abstraction for memory. You don’t need to know all … Continue reading

Posted in Uncategorized | Leave a comment

cortex A-8

Cortex-A8 Processor The ARM Cortex™-A8 processor, based on the ARMv7 architecture, has the ability to scale in speed from 600MHz to greater than 1GHz. The Cortex-A8 processor can meet the requirements for power-optimized mobile devices needing operation in less than … Continue reading

Posted in Uncategorized | Leave a comment

program to print * using while loop in shell scripting

1 head 1.1; 2 access; 3 symbols; 4 locks 5 root:1.1; strict; 6 comment @# @; 7 8 9 1.1 10 date 2014.04.19.12.26.46; author root; state Exp; 11 branches; 12 next ; 13 14 15 desc 16 @to print * … Continue reading

Posted in Uncategorized | Leave a comment

program to print * using while loop in shell scripting

1 head    1.1; 2 access; 3 symbols; 4 locks 5         root:1.1; strict; 6 comment @# @; 7 8 9 1.1 10 date    2014.04.19.12.26.46;    author root;    state Exp; 11 branches; 12 next    ; 13 14 15 desc 16 @to print * … Continue reading

Posted in Uncategorized | Leave a comment

Difference in malloc,vmalloc,kmalloc

Malloc :- It is presnt in C library. It allocates memory in user space Vmalloc:- It is shared object. If used in user space act as malloc. If used in kernel space then act as kmalloc. Kmalloc:- It allocates the … Continue reading

Posted in Uncategorized | Leave a comment

Introduction to Tool Chain

When talking about toolchains, one must distinguish three different machines : the build machine, on which the toolchain is built the host machine, on which the toolchain is executed the target machine, for which the toolchain generates code From these three … Continue reading

Posted in Uncategorized | Leave a comment

Shared Memory

What is Shared Memory? In the discussion of the fork() system call, we mentioned that a parent and its children have separate address spaces. While this would provide a more secured way of executing parent and children processes (because they … Continue reading

Posted in Uncategorized | Leave a comment

basic concepts

we can exit from superuser by using exit command . exit changing the password of root passwd

Posted in Uncategorized | Leave a comment

CROSS COMPILATION VS NATIVE COMPILATION

By default, Linux builds for the same architecture the host system is running. This is called “native compiling”. An x86 system building an x86 kernel, x86-64 building x86-64, or powerpc building powerpc are all examples of native compiling. Building different … Continue reading

Posted in Uncategorized | Leave a comment

Shell ,Terminal and Console

SHELL :-> “Shell” is the term used for any program which runs others. It wraps around another program .As the name suggest “Shell” the outer covering .for example in windows(OS) windows explorer is shell.In unix circles, shell has specialized to … Continue reading

Posted in Uncategorized | Leave a comment