linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Sparse-llvm question
@ 2017-01-26 17:27 Dibyendu Majumdar
  2017-01-26 17:47 ` Luc Van Oostenryck
  0 siblings, 1 reply; 2+ messages in thread
From: Dibyendu Majumdar @ 2017-01-26 17:27 UTC (permalink / raw)
  To: linux-sparse

Hi

I am hoping to reuse the Sparse-llvm component as a JIT compiler for C
in an application. I was playing around with it a bit and hit an
immediate issue. For instance compilation of a simple program like
this fails:

const char ident[] = "";

Is there a list of what works and what doesn't anywhere?

Thanks and Regards
Dibyendu

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

* Re: Sparse-llvm question
  2017-01-26 17:27 Sparse-llvm question Dibyendu Majumdar
@ 2017-01-26 17:47 ` Luc Van Oostenryck
  0 siblings, 0 replies; 2+ messages in thread
From: Luc Van Oostenryck @ 2017-01-26 17:47 UTC (permalink / raw)
  To: Dibyendu Majumdar; +Cc: linux-sparse

On Thu, Jan 26, 2017 at 05:27:17PM +0000, Dibyendu Majumdar wrote:
> Hi
> 
> I am hoping to reuse the Sparse-llvm component as a JIT compiler for C
> in an application.
Interesting.

>I was playing around with it a bit and hit an
> immediate issue. For instance compilation of a simple program like
> this fails:
> 
> const char ident[] = "";
> 
> Is there a list of what works and what doesn't anywhere?
> 
> Thanks and Regards
> Dibyendu

I think that sparse-llvm have always been very experimental.
Here you can see that initialization of arrays is not implemented
but simple variable is, so the following seems to be fine:
	const char *ident = "";


Regards,
Luc Van Oostenryck

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

end of thread, other threads:[~2017-01-26 17:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-26 17:27 Sparse-llvm question Dibyendu Majumdar
2017-01-26 17:47 ` Luc Van Oostenryck

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 NNTP newsgroup(s).