xref: /freebsd/contrib/file/magic/Magdir/bytecode (revision a4d6d3b8910f3805eebcd8703e11e066aad2e2a1)
143a5ec4eSXin LI
243a5ec4eSXin LI#------------------------------------------------------------
3*a4d6d3b8SXin LI# $File: bytecode,v 1.3 2022/03/24 15:48:58 christos Exp $
443a5ec4eSXin LI# magic for various bytecodes
543a5ec4eSXin LI
643a5ec4eSXin LI# From: Mikhail Gusarov <dottedmag@dottedmag.net>
743a5ec4eSXin LI# NekoVM (https://nekovm.org/) bytecode
843a5ec4eSXin LI0	string		NEKO	NekoVM bytecode
943a5ec4eSXin LI>4	lelong		x	(%d global symbols,
1043a5ec4eSXin LI>8	lelong		x	%d global fields,
1143a5ec4eSXin LI>12	lelong		x	%d bytecode ops)
1243a5ec4eSXin LI!:mime	application/x-nekovm-bytecode
1343a5ec4eSXin LI
1443a5ec4eSXin LI# https://www.iana.org/assignments/media-types/application/vnd.resilient.logic
1543a5ec4eSXin LI# From: Benedikt Muessig <benedikt@resilient-group.de>
1643a5ec4eSXin LI0	belong		0x07524c4d	Resilient Logic bytecode
1743a5ec4eSXin LI!:mime	application/vnd.resilient.logic
1843a5ec4eSXin LI>4	byte/16		x	\b, version %d
1943a5ec4eSXin LI>4	byte&0x0f	x	\b.%d
2043a5ec4eSXin LI
2143a5ec4eSXin LI# Guile file magic from <dalepsmith@gmail.com>
2243a5ec4eSXin LI# https://www.gnu.org/s/guile/
2343a5ec4eSXin LI# https://git.savannah.gnu.org/gitweb/?p=guile.git;f=libguile/_scm.h;hb=HEAD#l250
2443a5ec4eSXin LI
2543a5ec4eSXin LI0	string	GOOF----	Guile Object
2643a5ec4eSXin LI>8	string	LE		\b, little endian
2743a5ec4eSXin LI>8	string	BE		\b, big endian
2843a5ec4eSXin LI>11	string	4		\b, 32bit
2943a5ec4eSXin LI>11	string	8		\b, 64bit
30*a4d6d3b8SXin LI>13	regex	.\\..		\b, bytecode v%s
31