error handling in GCCJIT?
Basile Starynkevitch
basile@starynkevitch.net
Thu Jan 1 00:00:00 GMT 2015
Hello all,
What is the design philosophy of GCCJIT w.r.t. errors? Is the calling
application supposed to avoid as much as possible any errors, or on
the contrary can it rely on GCCJIT error checking and not do the
checking itself?
For examples:
should the caller check that every case in a switch statement
is unique and non-overlapping for case ranges, or should it leave that to GCCJIT?
should the caller check that arithmetic operations are only done on
numeric variables I guess that gcc_jit_context_new_binary_op with
GCC_JIT_BINARY_OP_PLUS of two pointer variables is a non-sense, as it
is in C. Or is that checked (and does gcc_jit_context_new_binary_op
returns NULL in that case)?
what happens (and when?) if gcc_jit_block_end_with_conditional is
given a non-boolean boolval?
etc....
PS. Perhaps the documentation might tell more about this...
Regards.
--
Basile Starynkevitch http://starynkevitch.net/Basile/
France
More information about the Jit
mailing list