diff options
| author | Shagun Agrawal <agrawalshagun07@gmail.com> | 2024-10-30 00:34:36 +0530 |
|---|---|---|
| committer | Shagun Agrawal <agrawalshagun07@gmail.com> | 2024-10-30 00:34:36 +0530 |
| commit | a94b482b001d99ecffdb31067319773cbde4501e (patch) | |
| tree | 65e53f128b7e63f1e8392e447d113d9dc827e7b4 /src/cljcc/compiler.clj | |
| parent | 40da421300b14e4766718984e0787550aadb9319 (diff) | |
Add emission for functions
Able to execute "hello, world" program.
Some segmentation faults in specific test steps.
Executables not exiting on their own.
Diffstat (limited to 'src/cljcc/compiler.clj')
| -rw-r--r-- | src/cljcc/compiler.clj | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cljcc/compiler.clj b/src/cljcc/compiler.clj index b0e5770..c1af6de 100644 --- a/src/cljcc/compiler.clj +++ b/src/cljcc/compiler.clj @@ -394,7 +394,7 @@ flatten (remove nil?)))) -(defn- tacky-function->assembly-function [{:keys [type identifier parameters instructions] :as function-definition}] +(defn- tacky-function->assembly-function [{:keys [type identifier parameters instructions]}] (let [parameter-instructions (parameters->assembly-instructions parameters) body-instructions (->> instructions (keep tacky-inst->assembly-inst) |
