Recent

Author Topic: Hexspeak in pascal  (Read 501 times)

af0815

  • Hero Member
  • *****
  • Posts: 669
Hexspeak in pascal
« on: March 22, 2021, 03:43:29 pm »
There are special byte combination in fpc = Hexspeak ? https://en.wikipedia.org/wiki/Hexspeak

$DEADBEEF and $AAAAAAAA are samples, maybe used in heaptrace and trashed variables. Are there other values known ?

Actual i found always $40ba4444 in a pointer, when i got a sigsegv. Is this a known hexspeak value ?
regards
Andreas

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7079
  • Debugger - SynEdit - and more
    • wiki

lucamar

  • Hero Member
  • *****
  • Posts: 3856
Re: Hexspeak in pascal
« Reply #2 on: March 22, 2021, 05:04:52 pm »
I would consider it more a "magic number" than hexspeak. After all, it's unpronunceable. Unless it's meant as 40 l33t-sheep's "baaaaaah"-ing ;)
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

af0815

  • Hero Member
  • *****
  • Posts: 669
Re: Hexspeak in pascal
« Reply #3 on: March 22, 2021, 08:14:21 pm »
$55555555, $EFEFEFEF are the values from fpc.devel list.
regards
Andreas

440bx

  • Hero Member
  • *****
  • Posts: 2295
Re: Hexspeak in pascal
« Reply #4 on: March 22, 2021, 08:23:22 pm »
reminds me of a tweet by an intellectually deficient biped who demonstrated his impaired verbal abilities by shouting $C0FEFE in the middle of the night.
FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.

PascalDragon

  • Hero Member
  • *****
  • Posts: 2956
  • Compiler Developer
Re: Hexspeak in pascal
« Reply #5 on: March 23, 2021, 09:59:20 am »
Not exactly hexspeak, but the exception code used for FPC exceptions for the Windows Structured Exception Handling is $E0465043. The E in the first Byte is for “exception” and the remaining three are the ASCII values for F, P and C ;)

And the exception class for POSIX exceptions would be $0053415031435046 which is #0'SAP1CPF' or, with the order corrected: 'FPC1PAS'#0.

 

TinyPortal © 2005-2018