* sparse-llvm results from trying to compile a largish program
@ 2017-03-13 19:34 Dibyendu Majumdar
2017-03-14 13:17 ` Dibyendu Majumdar
0 siblings, 1 reply; 3+ messages in thread
From: Dibyendu Majumdar @ 2017-03-13 19:34 UTC (permalink / raw)
To: Linux-Sparse
Hi,
I tried to compile a Lua implementation using sparse-llvm. This
particular implementation is called 'minilua' as it is a cut down
version of Lua 5.1.5 created by Mike Pall for the LuaJIT project.
I had to change all static initializations of course as these are
unsupported in sparse-llvm. I also had to add support for casting
floating point values to integer type in 'op_cast' implementation.
sparse-llvm managed to consume the program after these changes but
there were many LLVM errors reported, which indicates that the
generated code is incorrect.
I have saved the results from this exercise here:
https://github.com/dibyendumajumdar/dmr_c/tree/master/tests/minilua
Hopefully this will help in analysing the errors and deciding how to fix them.
Thanks and Regards
Dibyendu
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: sparse-llvm results from trying to compile a largish program
2017-03-13 19:34 sparse-llvm results from trying to compile a largish program Dibyendu Majumdar
@ 2017-03-14 13:17 ` Dibyendu Majumdar
2017-03-14 15:56 ` Dibyendu Majumdar
0 siblings, 1 reply; 3+ messages in thread
From: Dibyendu Majumdar @ 2017-03-14 13:17 UTC (permalink / raw)
To: Linux-Sparse
On 13 March 2017 at 19:34, Dibyendu Majumdar <mobile@majumdar.org.uk> wrote:
> I tried to compile a Lua implementation using sparse-llvm. This
> particular implementation is called 'minilua' as it is a cut down
> version of Lua 5.1.5 created by Mike Pall for the LuaJIT project.
>
> I had to change all static initializations of course as these are
> unsupported in sparse-llvm. I also had to add support for casting
> floating point values to integer type in 'op_cast' implementation.
>
> sparse-llvm managed to consume the program after these changes but
> there were many LLVM errors reported, which indicates that the
> generated code is incorrect.
>
> I have saved the results from this exercise here:
>
> https://github.com/dibyendumajumdar/dmr_c/tree/master/tests/minilua
>
> Hopefully this will help in analysing the errors and deciding how to fix them.
>
I have fixed a bunch of issues in my repository - and the updated
error list now is much reduced! Please see the link above for the
remaining errors and the generated code.
Thanks and Regards
Dibyendu
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: sparse-llvm results from trying to compile a largish program
2017-03-14 13:17 ` Dibyendu Majumdar
@ 2017-03-14 15:56 ` Dibyendu Majumdar
0 siblings, 0 replies; 3+ messages in thread
From: Dibyendu Majumdar @ 2017-03-14 15:56 UTC (permalink / raw)
To: Linux-Sparse
On 14 March 2017 at 13:17, Dibyendu Majumdar <mobile@majumdar.org.uk> wrote:
>> I tried to compile a Lua implementation using sparse-llvm. This
>> particular implementation is called 'minilua' as it is a cut down
>> version of Lua 5.1.5 created by Mike Pall for the LuaJIT project.
>>
> I have fixed a bunch of issues in my repository - and the updated
> error list now is much reduced! Please see the link above for the
> remaining errors and the generated code.
>
The code now compiles without errors but crashes when run!
Regards
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-03-14 15:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-13 19:34 sparse-llvm results from trying to compile a largish program Dibyendu Majumdar
2017-03-14 13:17 ` Dibyendu Majumdar
2017-03-14 15:56 ` Dibyendu Majumdar
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).