aboutgitcodelistschat:MatrixIRC
path: root/seitan-cooker/emit.c
blob: a82529c4dc802a7b55e5e7ff51c04698f68c00e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// SPDX-License-Identifier: GPL-3.0-or-later

/* seitan - Syscall Expressive Interpreter, Transformer and Notifier
 *
 * cooker/emit.c - Generate gluten (bytecode) instructions
 *
 * Copyright 2023 Red Hat GmbH
 * Author: Stefano Brivio <sbrivio@redhat.com>
 */

#include "cooker.h"
#include "gluten.h"
#include "util.h"

int emit_nr(struct gluten_ctx *g, long number)
{
	debug("   %i: OP_NR %li, < >", g->ip++, number);

	return 0;
}

int emit_load(struct gluten_ctx *g, int offset, int index, size_t len)
{
	debug("   %i: OP_LOAD #%i < %i (%lu)", g->ip++, offset, index, len);

	return 0;
}