mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 04:25:06 +02:00
WIP - register inlinable Scheme functions
This commit is contained in:
parent
acef00a5b6
commit
298338586a
1 changed files with 8 additions and 0 deletions
|
@ -174,6 +174,14 @@
|
||||||
(set! module-globals (global-vars input-program))
|
(set! module-globals (global-vars input-program))
|
||||||
(set! globals (append (lib:idb:ids imported-vars) module-globals))
|
(set! globals (append (lib:idb:ids imported-vars) module-globals))
|
||||||
|
|
||||||
|
;; Register inlinable Scheme functions
|
||||||
|
(for-each
|
||||||
|
(lambda (e)
|
||||||
|
(if (define-c-inline? e)
|
||||||
|
(prim:add-udf! (define->var e) (define-c->inline-var e))))
|
||||||
|
;(write `(DEBUG add inline ,(define->var e) ,(define-c->inline-var e)))))
|
||||||
|
input-program)
|
||||||
|
|
||||||
;; Trim down the export list to any exports that are just "pass throughs"
|
;; Trim down the export list to any exports that are just "pass throughs"
|
||||||
;; from imported libraries. That is, they are not actually defined in
|
;; from imported libraries. That is, they are not actually defined in
|
||||||
;; the library being compiled
|
;; the library being compiled
|
||||||
|
|
Loading…
Add table
Reference in a new issue