0xbaadf00d

Started by
11 comments, last by PeterTarkus 19 years, 11 months ago
quote:Original post by Anonymous Poster
we used to use 0xDEADBEEF all the time an university...
still use it now at work. have also used 0xBAADBEEF, 0xCAFEDEAD
haven''t ever tried to think of more though, and haven''t seen BAADFOOD before.


I believe on AIX 0xDEADBEEF is used whenever there is a memory problem.

Some time ago I read about someone programming a Z80 system a long time ago. Maybe you''ve seen those, just a board with 4K RAM, a 4-digit hexadecimal display and a 16 key keyboard to input hex codes. If anything went wrong it would print 2BAD on the display and halt the CPU, forcing you to reboot and lose your program.
Advertisement
quote:Original post by FReY
Well java class files (or some java files) have 0xCAFEBABE as a signature somewhere in there


Yep, class files - 0xCAFEBABE is the first two bytes of any compiled bytecode. It''s a magic number - a simple first check that the file is worth attempting to load.

--cfmdobbie
...
That would be four bytes, sir.

This topic is closed to new replies.

Advertisement