public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
* Question on libgccjit
@ 2023-03-20 19:16 Li, Yicheng
  0 siblings, 0 replies; 3+ messages in thread
From: Li, Yicheng @ 2023-03-20 19:16 UTC (permalink / raw)
  To: jit

[-- Attachment #1: Type: text/plain, Size: 333 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-20 23:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4895236c-a56f-a8aa-d581-476e3072f72c@starynkevitch.net>
     [not found] ` <AFDF0F71-5CB3-47A0-95FF-2E23877F3DE7@vols.utk.edu>
     [not found]   ` <f942f395-42b5-18cd-45a8-433437fcf752@starynkevitch.net>
2023-03-20 19:38     ` Question on libgccjit Li, Yicheng
2023-03-20 23:23       ` David Malcolm
2023-03-20 19:16 Li, Yicheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).