You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using the llvm-12 branches of llvm-hs-pretty and llvm-hs and relaxing the bounds in the mcc.cabal file. (Running on MacOS.)
All the cabal test tests pass, apart from test-linkedlist, which produces
cabal run mcc -- tests/pass/test-linkedlist.mc -c -o linkedlist
Up to date
mcc on llvm-12 [!?]
❯ ./linkedlist
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
-1991765899
zsh: segmentation fault ./linkedlist
Fortunately, just initializing l and l2 solves the problem.
──────────────────────────────────────────────────────────────────────────────────────────────────────────────
modified: tests/pass/test-linkedlist.mc
──────────────────────────────────────────────────────────────────────────────────────────────────────────────
@ tests/pass/test-linkedlist.mc:36 @ int main() {
int i;
struct List *l;
struct List *l2;
l = NULL;
l2 = NULL;
for (i = 0; i < 20; i = i + 1) {
l = cons(i, l);
}
Thanks for the great tutorial. I'll have a deeper look.
The text was updated successfully, but these errors were encountered:
I've set up your mcc compiler to work with llvm 12 (
cabal.project
file:)
using the llvm-12 branches of llvm-hs-pretty and llvm-hs and relaxing the bounds in the mcc.cabal file. (Running on MacOS.)
All the
cabal test
tests pass, apart fromtest-linkedlist
, which producesFortunately, just initializing
l
andl2
solves the problem.Thanks for the great tutorial. I'll have a deeper look.
The text was updated successfully, but these errors were encountered: