<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">Hello,<br><br>on a simple task - multiply two matrices mat_a and mat_b https://github.com/glathoud/flatorize/blob/master/explore/scheme_matmul_common.scm - I've been comparing 3 implementations, using interpretation and compilation.<br><br>To compile I used the line below. Is there a better way, at least a few straightforward optimization (options) ?<br><pre>gsc -exe -o scheme_matmul_classic.bin tmp.scm</pre>Details are below.<br><br>Best regards,<br>Guillaume<br><br><br>1. Functional implementation: <br>https://github.com/glathoud/flatorize/blob/master/explore/scheme_matmul_list_of_lists.scm#L50<br><br>2. Ugly imperative implementation: <br>https://github.com/glathoud/flatorize/blob/master/explore/scheme_matmul_classic.scm#L33<br><br>3. Flat implementation (for the specific matrix sizes):
 <br>https://github.com/glathoud/flatorize/blob/master/explore/scheme_matmul342.scm#L31<br><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">To run both tests (interpreted and compiled), I used this: <br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">https://github.com/glathoud/flatorize/blob/master/explore/scheme_matmul.sh#L16</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new
 roman,new york,times,serif; background-color: transparent; font-style: normal;">Results: <br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">https://github.com/glathoud/flatorize/blob/master/explore/scheme_matmul.results.txt<br></div></div></body></html>