EmbLogic's Blog

today update 21/06/2012

what is the range of double and float in gcc compiler?

Posted in Data Structures with C | 1 Comment

c program

i started doing assign2 having some doubts in assign1….will be discussing those doubts with my class mates tomorrow.

AND ONE DOUBT IS THERE THAT WHY I AM NOT ABLE TO USE ‘^’ TO CALCULATE THE POWER…..I READ SOMEWHERE THAT IT IS ACTING AS A BITWISE XOR ..IS DAT SO????

 

Posted in Uncategorized | 1 Comment

i made sum program of function…..i am facing small problem in recursion programm and as well as in malloc…..

Posted in Uncategorized | 1 Comment

today’s update

Successful Implemented write function….

Posted in Uncategorized | Leave a comment

project status

getting errors in compression

Posted in Uncategorized | 1 Comment

Character device driver status by Vijay Partap

I have done the following:

  1. Optimization of LKM with respect to trimming (used for loop for moving in the qset array)
  2. Implemented scull_write mapping.
  3. Implemented write function with:

a. scull_qset allocation function.

b. qset allocation function.

c. quantum allocation function.

           4.  I have also done various calculations that will be used in write operation.

NOTE: Do not know how to use lseek

PARALLEL WORK: working on C assignment no. 1.



Posted in Character Driver | Leave a comment

project status

done compression, having problems in decompression

Posted in Uncategorized | Leave a comment

unexpected output of operation on post n pre increment operators

int main()

{

int g,l;

int l=100;

g=l- – + l++;

printf(“g = %d”,g);

return 0;

}

 

predicted output:200

 

actual output:198

why??

post incrmt r given d higher pref…then ans should be 200.

Posted in Data Structures with C | Leave a comment

Re :- WSR of MDCI Project

DONE!!!…. “Compression and Decompression” of data succesfully using low level file concept.

Posted in Uncategorized | Leave a comment

IPC

When two processes are communicating via fifo and if they are in the blocking state say block on open, block on read/write, what is the state of the process during this blocking state. Is it sleep state or wait state or anything else. Kindly clarify how kernel differentiate
between wait and sleep processes.

Posted in Uncategorized | 1 Comment

unexpected value printed by gcc. why ?

1 #include<stdlib.h>
2
3 int main()
4 {
5 int de=1234;
6 float j=45.1234;
7 char ch= ‘s’;
8 double s= 3.1415E+5;
9
10 printf(“de= %d \n”,de);
11 printf(“j= %f\n”,j);
12 printf(“ch= %c \n”,ch);
13 printf(“s= %e \n”,s);
14 return 0;
15
16 }
17
18 /*predicted output
19 *
20 * de= 1234
21 * j= 45.123400
22 * ch= s
23 * s= 3.141500e+05
24 *
25 * ON TERMINAL
26 *
27 * [root@rahulkumar c]# gcc formatprint.c
28 * formatprint.c: In function ‘main’:
29 * formatprint.c:10:3: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
30 * [root@rahulkumar c]# ./a.out
31 *
32 * OUTPUT
33 *
34 * de= 1234
35 * j= 45.123402
36 * ch= s
37 * s= 3.141500e+05
38 */
39
my question is, if assign or initialise the the value of float variable like above underlined then it take the 22 * ch= s
23 * s= 3.141500e+05
24 *
25 * ON TERMINAL
26 *
27 * [root@rahulkumar c]# gcc formatprint.c
28 * formatprint.c: In function ‘main’:
29 * formatprint.c:10:3: warning: incompatible implicit           declaration of built-in function ‘printf’ [enabled by           default]
30 * [root@rahulkumar c]# ./a.out
31 *
32 * OUTPUT
33 *
34 * de= 1234
35 * j= 45.123402
36 * ch= s
37 * s= 3.141500e+05
38 */
39
my question is, if assign or initialise the the value of float variable like above underlined marked red then it take the garbage value at output shown underlined bold. assigning variable in float with 0.0 also give garbage value at other precision value.

Posted in Data Structures with C | 1 Comment

I am trying to install fedora on a separate internal hard disk…….but an error of “not enough memory”comes. Plz Help!!

Posted in Uncategorized | 2 Comments

PROJECT UPDATE

CREATED MASTER ARRAY,AND STARTED COMPRESSION…

Posted in Uncategorized | Leave a comment

Project Status

Did compression

Posted in Uncategorized | Leave a comment

Project Status

Done with master array and compression completely. Left with decompression part….

Posted in Uncategorized | Leave a comment