Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Task 5 Compare Results
#1
Code:
echo "(0)" > task5.args
scam -r task5.scm task5.args >> results.txt
echo "(1)" > task5.args
scam -r task5.scm task5.args >> results.txt
echo "(2)" > task5.args
scam -r task5.scm task5.args >> results.txt
echo "(3)" > task5.args
scam -r task5.scm task5.args >> results.txt
echo "(7)" > task5.args
scam -r task5.scm task5.args >> results.txt
echo "(11)" > task5.args
scam -r task5.scm task5.args >> results.txt

for me, gcc starts to whine for any more than 11 levels...

Code:
$ cat results.txt
1
 1
1 1
  1
 1 1
1 2 1
      1
     1 1
    1 2 1
   1 3 3 1
  1 4 6 4 1
 1 5 10 10 5 1
1 6 15 20 15 6 1
          1
         1 1
        1 2 1
       1 3 3 1
      1 4 6 4 1
     1 5 10 10 5 1
    1 6 15 20 15 6 1
   1 7 21 35 35 21 7 1
  1 8 28 56 70 56 28 8 1
 1 9 36 84 126 126 84 36 9 1
1 10 45 120 210 252 210 120 45 10 1
Reply
#2
So is it expected for it to start complaining around 11 rows in? I'm asking because mine spits out a gc message around line 12 as well.
Reply
#3
Don't worry about the gc stats (unless it is indicating that you are doing too much work).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)