unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* wip-rtl native closure creation
@ 2012-08-05 15:19 Stefan Israelsson Tampe
  2012-08-06  9:32 ` Andy Wingo
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Israelsson Tampe @ 2012-08-05 15:19 UTC (permalink / raw)
  To: Andy Wingo; +Cc: guile-devel

[-- Attachment #1: Type: text/plain, Size: 786 bytes --]

Hi,

I was thinking how to mix rtl-VM and native compilation with respect to
closure creation

currently in the code we layout the program as

((nfree :16 | flags:8 | ?:7 | tag:0), code, freevar1 ....)

Then at closure creation we just set first slot, the code to point to a
relative adress relative
ip e.g. we just need 24 bits, and finally the free-vars is handled.

The thing to think of here is how to introduce a reference to native code,
if we add an extra slot
in the program data structure as currently down in the old program (not rtl
programs) definition, then
we must do some heavy magic to map vm-code to native code. Probably it is
best to have the first
qword / dword in the code to be 0 or the native adress e.g. I propose to
add that feature to the rtl-branch.

/Stefan

[-- Attachment #2: Type: text/html, Size: 853 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-08-06 17:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-05 15:19 wip-rtl native closure creation Stefan Israelsson Tampe
2012-08-06  9:32 ` Andy Wingo
2012-08-06  9:39   ` Sjoerd van Leent Privé
2012-08-06 11:44     ` Noah Lavine
2012-08-06 13:01       ` Andy Wingo
2012-08-06 13:00     ` Andy Wingo
2012-08-06 17:46   ` Stefan Israelsson Tampe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).