[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libjit] how to stack label
From: |
Jakob Löw |
Subject: |
Re: [Libjit] how to stack label |
Date: |
Fri, 04 May 2018 17:13:38 +0200 |
Hey,
it looks like you're mixing things up here. jit_insn_call_native calls
native C functions like printf, fopen etc. When you want to "branch" to
a label you have to use jit_insn_branch, jit_insn_branch_if or
jit_insn_branch_if_not. What exactly do you mean by stacking labels?
You can define a label using jit_insn_label. You can also define
multiple at the same place by calling it multiple times, if this is
what you mean by "stacking"?
- Jakob
On Fri, 2018-05-04 at 23:24 +0900, Newton Kim wrote:
> Does anyone know how to stack labels using jit_insn_call_native?
> I'm tackling to implement GOSUB-RETURN statements using libjit APIs.
>
> Thanks in advance.
> Newton.