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