From 72850faae0b2280809f5b80e103237418b6e8fd8 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 31 Oct 2021 08:36:03 -0700 Subject: [PATCH] translate_emulated has gotten _much_ slower I spent some time timing this command: cd ./linux/bootstrap; ./clean; popd; time ./translate_emulated apps/ex2.mu Times at a few commits this year, along with notes on what changed in the linux/ directory: 517a01c95a62a8d6227357d514dc9fff83388153 Feb 17 1:30 time ./translate_mu_baremetal_emulated baremetal/ex2.mu 71e4f3812982dba2efb471283d310224e8db363e Mar 3 1:30 time ./translate_emulated ex2.mu 2df1d1a73046a0a7b6523552b53f407651ed36df May 14 1:53 time ./translate_emulated apps/ex2.mu ff8ec9bcff7577ba923fe7868ea62ecceed55ee7 + patch May 14 2:10 -- start showing stack trace on abort 9831a8cef9cb8f412590ffa6ab9f52b8b51ab9d2 + patch May 19 2:23 8c47da082b63b6aa6aafd45e1f8f7edd4459e555 Jun 18 2:27 -- what changed in the middle here?! b625c6304eca827c04eda719fa6f7927294b80bc Jul 29 3:13 -- seemingly minor change to linux/next-word 52e3ea8a4bec791e4c2d64fb8aca9e26cdf60f25 Aug 15 4:55 ba4a3c5be70d473479e663be0400b798f88c113d Aug 22 4:57 -- one additional compiler check in linux/mu.subx 899cdcc3f3da2be04801ab79b53ec2264e8b1e4c Aug 29 5:44 5:54 975f372d67a5242d3c046712d43ec9f61a920009 Oct 31 5:22 So it's not a single commit :/ Unclear what's going on. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6cc7efe9..4ca9d10e 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ Mu programs build natively either on Linux or on Windows using [WSL 2](https://d For Macs and other Unix-like systems, use the (much slower) emulator: ```sh -./translate_emulated apps/ex2.mu # ~2 mins to emit code.img +./translate_emulated apps/ex2.mu # 2-5 minutes to emit code.img ``` Mu programs can be written for two very different environments: