• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why is it not cafebabe ?

 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It was mentioned that the hex bit patterns of the initial parts of java classes translate to cafebabe. When I did a hexdump recently, it gave me:



Why ?
 
Dragan Stankovic
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you coded in machine language you would know

So your dump actually looks like this (it is byte oriented):



Usually, when you do hex dump the memory is displayed in blocks of 16 bits or two bytes where byte with higher bits is displayed first so it seems as they have reversed order.
[ November 10, 2008: Message edited by: Dragan Stankovic ]
 
Bill Shirley
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Time for some Computer Science 101: Endianness.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic