EmbLogic's Blog

Author Archives: Himanshu Gupta

Endianness

Big Endian In big endian, you store the most significant byte in the smallest address. Here’s how it would look:   Address Value 1000 90 1001 AB 1002 12 1003 CD Little Endian In little endian, you store the least … Continue reading

Posted in Uncategorized | Leave a comment

Gcc Optimization level

Optimization Levels Without any optimization option, the compiler’s goal is to reduce the cost of compilation and to make debugging produce the expected results. Statements are independent: if you stop the program with a breakpoint between statements, you can then … Continue reading

Posted in Uncategorized | Leave a comment

Thread

What is a Thread? Technically, a thread is defined as an independent stream of instructions that can be scheduled to run as such by the operating system. But what does this mean?  To the software developer, the concept of a … Continue reading

Posted in Uncategorized | Leave a comment

Circular Queue

Figure of circular queue R->Rear F->Front Initially rear=front=0 Circular queue is as shown in figure it is like a array size in which element are from 0 to (n-1) if array is of length n it is divided into nodes … Continue reading

Posted in Uncategorized | Leave a comment

FIFO

fifo is just similar to pipe as its second name suggest which is named pipe… In fifo and pipe first difference is pipe cannot be seen in directory but named pipe(fifo ) can be accessed or seen inside the pipe … Continue reading

Posted in Uncategorized | Leave a comment

Making Semaphore easy…

Semaphore is quiet easy and simple… Lets take an example from our real life which makes semaphore a simple task for me…. when we are using a printer on lan network and ten’s of computer are connected to the same … Continue reading

Posted in Uncategorized | Leave a comment

Breif Discussion of fork ,pipe and execl.

Process:- Process is execution of set of statements in sequential way. Fork():-It is a system call that create a duplicate process of the process which is evoking the system call(fork). After the fork statement the remaining part of a process … Continue reading

Posted in Uncategorized | Leave a comment

Comparison

Comparison between different processors currently in use.

Posted in Uncategorized | Leave a comment

Vim editor

If any one of you want to get auto indenting while writing code in vim editor and if you are fed up of giving command again and again in every page go to /etc and than open file named vimrc … Continue reading

Posted in Uncategorized | Leave a comment

Decompression

I have completed data decompression with functions and get the actual data back from the compress file.

Posted in Uncategorized | Leave a comment

Completed data compression with making functions.

1 head 1.20; 2 access; 3 symbols; 4 locks 5 root:1.20; strict; 6 comment @ * @; 7 8 9 1.20 10 date 2014.02.24.18.01.15; author root; state Exp; 11 branches; 12 next 1.19; 13 14 1.19 15 date 2014.02.24.08.37.55; author … Continue reading

Posted in Uncategorized | Leave a comment

Project 01

Completed my master array declaring functions of each type.

Posted in Uncategorized | Leave a comment

Write a Program to calculate hcf and lcm of three numbers and also input number from user.

#include<stdio.h> int main() { int i,l,a,b,c; int lcm=1,hcf=1; int prime[26]={1,2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97}; printf(“enter the numbers”); scanf(“%d%d%d”,&a,&b,&c); for(i=1;i<26;i++) { l=prime[i]; if(a%l==0 && b%l==0 && c%l==0) { hcf*=l; } else { if(a%l==0) lcm*=l; if(b%l==0) lcm*=l; if(c%l==0) lcm*=l; } } } printf(“\nHcf of three number … Continue reading

Posted in Uncategorized | Leave a comment

how to install applications using .tar file ??

Posted in Uncategorized | Leave a comment