bytecode 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #------------------------------------------------------------
  2. # $File: bytecode,v 1.5 2023/02/20 16:25:05 christos Exp $
  3. # magic for various bytecodes
  4. # From: Mikhail Gusarov <dottedmag@dottedmag.net>
  5. # NekoVM (https://nekovm.org/) bytecode
  6. 0 string NEKO NekoVM bytecode
  7. >4 lelong x (%d global symbols,
  8. >8 lelong x %d global fields,
  9. >12 lelong x %d bytecode ops)
  10. !:mime application/x-nekovm-bytecode
  11. # https://www.iana.org/assignments/media-types/application/vnd.resilient.logic
  12. # From: Benedikt Muessig <benedikt@resilient-group.de>
  13. 0 belong 0x07524c4d Resilient Logic bytecode
  14. !:mime application/vnd.resilient.logic
  15. >4 byte/16 x \b, version %d
  16. >4 byte&0x0f x \b.%d
  17. # Guile file magic from <dalepsmith@gmail.com>
  18. # https://www.gnu.org/s/guile/
  19. # https://git.savannah.gnu.org/gitweb/?p=guile.git;f=libguile/_scm.h;hb=HEAD#l250
  20. 0 string GOOF---- Guile Object
  21. >8 string LE \b, little endian
  22. >8 string BE \b, big endian
  23. >11 string 4 \b, 32bit
  24. >11 string 8 \b, 64bit
  25. >13 regex .\\.. \b, bytecode v%s
  26. # Racket file magic
  27. # From: Haelwenn (lanodan) Monnier <contact+libmagic@hacktivis.me>
  28. # https://racket-lang.org/
  29. # https://github.com/racket/racket/blob/master/racket/src/expander/compile/write-linklet.rkt
  30. 0 string #~
  31. >&0 pstring x
  32. >>&0 pstring racket
  33. >>>0 string #~ Racket bytecode
  34. >>>>&0 pstring x (version %s)