wget-tcc-run

35 views
Skip to first unread message

gmhwxi

unread,
Mar 31, 2014, 11:45:34 PM3/31/14
to ats-lan...@googlegroups.com
Assume you have ATS2 installed and PATSHOME ad PATSHOMERELOC are properly set.

If you have 'wget', 'tcc' and gtk+-3.0, then the following long command-line should work for you:

wget -q -O - http://www.cs.bu.edu/~hwxi/academic/courses/CS320/Spring14/code/lecture-03-20/QueenPuzzle-depth-all_dats.c | tcc -run -DATS_MEMALLOC_LIBC -I${PATSHOME} -I${PATSHOME}/ccomp/runtime -I${PATSHOMERELOC}/contrib `pkg-config gtk+-3.0 --cflags --libs` - >& /dev/null

It is some sort of animation I made for my PL class.

I tried it on Linux and it worked fine. Not sure if it works on MacOS.

gmhwxi

unread,
Apr 1, 2014, 9:53:10 AM4/1/14
to ats-lan...@googlegroups.com
I moved the C code to another place:

wget -q -O - http://www.ats-lang.org/TEMPATS/GTK/Algorianim/QueenPuzzle/QueenPuzzle-depth-all_dats.c | tcc -run -DATS_MEMALLOC_LIBC -I${PATSHOME} -I${PATSHOME}/ccomp/runtime -I${PATSHOMERELOC}/contrib `pkg-config gtk+-3.0 --cflags --libs` - >& /dev/null

gmhwxi

unread,
Apr 2, 2014, 3:12:04 PM4/2/14
to ats-lan...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages