davidgiven / clue Goto Github PK
View Code? Open in Web Editor NEWAn experimental C to Javascript/Lua/Perl5/Lisp/Java compiler
An experimental C to Javascript/Lua/Perl5/Lisp/Java compiler
Could you try compiling http://gtoal.com/scratch/console.c please? I'm not sure if the crash is a legit clue bug or if I messed something up when compiling the system. (the patch files for sparse don't match the current release, I merged the diffs as best I could)
clue: src/clue/compile.c:196: emit_scalar: Assertion `0' failed.
The error is independent of which back-end is used.
thanks
Graham
SeTuP_ClUe(){
[ -d clue ] || git clone --depth 1 https://github.com/davidgiven/clue.git ||return
[ -d sparse-0.4.1 ] || curl http://ftp.be.debian.org/pub/software/devel/sparse/dist/sparse-0.4.1.tar.gz | tar -xzv ||return
if [ ! -d sparse-0.4.1-patched ]; then
cp -r sparse-0.4.1 sparse-0.4.1-patched ||return
cd sparse-0.4.1-patched ||return
patch -p1 < ../clue/sparse.patch ||return
cd .. ||return
fi
if [ ! -d sparse-0.4.1-patched-PREFIX ]; then
cd sparse-0.4.1-patched ||return
mkdir ../sparse-0.4.1-patched-PREFIX ||return
make install PREFIX=../sparse-0.4.1-patched-PREFIX ||return
cd .. ||return
fi
export PATH="$PATH:$PWD/sparse-0.4.1-patched-PREFIX/bin"
sed -i "s|^SPARSEINC = .*\$|SPARSEINC = \"$PWD/sparse-0.4.1-patched-PREFIX/include\"|" clue/pmfile
sed -i "s|^SPARSELIB = .*\$|SPARSELIB = \"$PWD/sparse-0.4.1-patched-PREFIX/lib/libsparse.a\"|" clue/pmfile
cd clue ||return
./pm ||return
cd .. ||return
}
SeTuP_ClUe
unset SeTuP_ClUe
The link from the README no longer hosts sparse 0.4.1
https://www.kernel.org/pub/software/devel/sparse/dist/
I found it at
http://ftp.be.debian.org/pub/software/devel/sparse/dist/sparse-0.4.1.tar.gz
Hello!
I tried converting some c code I have, which makes frequent use of bitwise operators and I've traced the error to "unimplemented: 'not.32'", or something similar, from cg.c. The not operator seems pretty important! (or at least with the code I'm doing right now).
How could I go about implementing the not operator?
This seems like a great project, it's a pity it isn't still being developed?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.