Question on libgccjit

Li, Yicheng yli137@vols.utk.edu
Mon Mar 20 19:16:37 GMT 2023


Hi,

How to do pointer arithmetic in libgccjit?
I created a pointer type (char *) and an integer type (int or size_t or long).
When I use gcc_jit_context_binary_op with GCC_JIT_BINARY_OP_PLUS, it’s giving me error as mismatching types of (char*) and (int).
Is pointer arithmetic viable in libgccjit?

Thank you
Yicheng Li


More information about the Jit mailing list