I think when you want some-thing from your heart you will find that thing from nature in the gift but the condition is that nature needs patience . Java also needs patience , if you want to follow my foot-prints then after every new fetched information you have to take a break .
now its time to take a dip in the topic , " how to find that your compiler or machine works in one-byte , two-byte or in four-byte " .
behind this there is a simple concept ... if you are using c than make a code like :--
int *p , *q , *r , *s , *t , *u;
*p = a ;
*q = 4 ;
*r = 5 ;
*s = 1 ;
*t = -10;
*u = 100;
printf("%d",p);
printf("\n%d",q);
printf("\n%d",r);
printf("\n%d",s);
printf("\n%d",t);
printf("\n%d",u);
and you will found output like ( in my machine )
862
874
12803
-29156
3365
64
now the use of this output is that , if we get address in odd-even by any machine than it surely it will work in one-byte opcode fetching or use one-byte .
and the same concept is also followed in Java
test_of_addresses ob = new test_of_addresses ( );
System.out.println(ob);
test_of_addresses ob_1 = new test_of_addresses ( );
System.out.println(ob_1);
test_of_addresses ob_2 = new test_of_addresses ( );
System.out.println(ob_2);
test_of_addresses ob_3 = new test_of_addresses ( );
System.out.println(ob_3);
test_of_addresses ob_4 = new test_of_addresses ( );
System.out.println(ob_4);
test_of_addresses ob_5 = new test_of_addresses ( );
System.out.println(ob_5);
int i = Integer.valueOf("1fee6fc", 16).intValue();
System.out.println("Integer:=" + i);
int j = Integer.valueOf("1eed786", 16).intValue();
System.out.println("Integer:=" + j);
int k = Integer.valueOf("187aeca", 16).intValue();
System.out.println("Integer:=" + k);
int l = Integer.valueOf("12dacd1", 16).intValue();
System.out.println("Integer:=" + l);
int m = Integer.valueOf("1ad086a", 16).intValue();
System.out.println("Integer:=" + m);
and you will get the output like :---
_________92
_________58
_________22
_________77
_________98
"" and by this concept we can easily say that Java and C follows the concept of one-byte opcode reading and writing . ""
now its time to take a dip in the topic , " how to find that your compiler or machine works in one-byte , two-byte or in four-byte " .
behind this there is a simple concept ... if you are using c than make a code like :--
int *p , *q , *r , *s , *t , *u;
*p = a ;
*q = 4 ;
*r = 5 ;
*s = 1 ;
*t = -10;
*u = 100;
printf("%d",p);
printf("\n%d",q);
printf("\n%d",r);
printf("\n%d",s);
printf("\n%d",t);
printf("\n%d",u);
and you will found output like ( in my machine )
862
874
12803
-29156
3365
64
now the use of this output is that , if we get address in odd-even by any machine than it surely it will work in one-byte opcode fetching or use one-byte .
and the same concept is also followed in Java
test_of_addresses ob = new test_of_addresses ( );
System.out.println(ob);
test_of_addresses ob_1 = new test_of_addresses ( );
System.out.println(ob_1);
test_of_addresses ob_2 = new test_of_addresses ( );
System.out.println(ob_2);
test_of_addresses ob_3 = new test_of_addresses ( );
System.out.println(ob_3);
test_of_addresses ob_4 = new test_of_addresses ( );
System.out.println(ob_4);
test_of_addresses ob_5 = new test_of_addresses ( );
System.out.println(ob_5);
int i = Integer.valueOf("1fee6fc", 16).intValue();
System.out.println("Integer:=" + i);
int j = Integer.valueOf("1eed786", 16).intValue();
System.out.println("Integer:=" + j);
int k = Integer.valueOf("187aeca", 16).intValue();
System.out.println("Integer:=" + k);
int l = Integer.valueOf("12dacd1", 16).intValue();
System.out.println("Integer:=" + l);
int m = Integer.valueOf("1ad086a", 16).intValue();
System.out.println("Integer:=" + m);
and you will get the output like :---
_________92
_________58
_________22
_________77
_________98
"" and by this concept we can easily say that Java and C follows the concept of one-byte opcode reading and writing . ""
No comments:
Post a Comment