Do you remember DEADBEEF from your early programming days?

  • Thread starter Thread starter jim mcnamara
  • Start date Start date
Click For Summary
SUMMARY

The hexadecimal number 0xDEADBEEF, representing the decimal value 3735928559, is commonly used in programming as a recognizable sentinel value or marker for null data in memory. It serves as a default setting in various applications and is often referenced in hexadecimal jokes and discussions. Other similar values include 0xFEEDBEEF and 0xDEAFBEEF, which are utilized for debugging and memory management in systems like Solaris. The discussion highlights the cultural significance of these values among programmers and their historical context in software development.

PREREQUISITES
  • Understanding of hexadecimal notation and its applications in programming
  • Familiarity with memory management concepts, particularly in C/C++
  • Knowledge of debugging techniques and the use of magic numbers
  • Basic programming experience, especially in languages that utilize pointers and memory allocation
NEXT STEPS
  • Research the use of magic numbers in programming and their implications
  • Learn about memory management techniques in C/C++, focusing on malloc and free
  • Explore the significance of sentinel values in software development
  • Investigate other hexadecimal values used in programming and their applications
USEFUL FOR

Programmers, software developers, and computer science students interested in memory management, debugging practices, and the cultural aspects of programming humor.

jim mcnamara
Mentor
Messages
4,789
Reaction score
3,852
from programming long ago?
 
  • Like
Likes   Reactions: Klystron
Computer science news on Phys.org
Yes.
 
no.
 
Sure. The hex number 0xDEADBEEF happens to be the decimal number 3735928559, although that's of no real consequence.
 
Maybe it's his phone number. :nb)
 
I remember that we used it as a default setting a few years ago (I don't remember the exact application), but it was pointed out that it might not sit well with our vegetarian customers (which we never thought of), so we changed it. Not so much to be PC, but to avoid potential conflicts. (And that was before I married a vegetarian...) :smile:
 
I tried to relate a few hexadecimal jokes before but they fell flat. Either jokes made with words formed from the first six letters of the alphabet (combined with digits 0..9 ?) are not funny or people do not program hex any more. Cafe Dead, Feed Beef, Deaf Fade, Aced Deed.
Ho-Hum 😌
 
Klystron said:
I tried to relate a few hexadecimal jokes before but they fell flat.

I agree. Jokes are better in other bases:
Why do programmers confuse Christmas with Halloween?
Because 31 Oct = 25 Dec
 
Yep.
 
  • Love
Likes   Reactions: Klystron
  • #10
Yep.

Code:
 _   _
((___))
[ x x ]
 \   /
 (' ')
  (U)
 
  • Like
  • Haha
Likes   Reactions: 256bits and Klystron
  • #11
Wow. This takes me back to the days when 32767 was the highest number in the universe!

I seem to have some recollection that deadbeef was null data on some systems... i.e. if you read some section of a program or data space that contained null data (as opposed to just zeros or random noise), than you would see deadbeef, in hex... but this is just a vague wisp of unrefreshed memory.

diogenesNY
 
  • Like
Likes   Reactions: DrClaude
  • #12
jim mcnamara said:
from programming long ago?
Sure, and there are many more as well. We used these values when we needed something that would stand out in a hex dump (either scanning visually or searching), or a recognizable sentinel value

A few others: FEEDBEEF, FEEDFACE, DEAFBEEF, ...
 
  • Like
Likes   Reactions: Klystron
  • #13
Solaris' malloc uses it to mark free memory. FWIW.
 

Similar threads

Replies
38
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
Replies
12
Views
2K
  • · Replies 24 ·
Replies
24
Views
3K
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K