9a93
![]() |
|
|
|
|
|||||||
| Userland Programming & Scripting C, Shell, Perl, Sed & Awk |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
I was just wondering how the cons cell is implemented in Clisp and other Lisps. Upon reading briefly, I think that these were registers which can hold 2 pointers (CAR, CDR)... I wanted to know how they are implemented in software? (void *)? but list can hold multiple types, we need to maintain a type of the obj associated with this, for typecasting and stuff. Is there a header for each section (which holds type info and other bookkeeping info). Coming from C land wanted to see how this is implemented. Please share your thoughts or point me to a location where I can get the info. Thanks. |
|
#2
|
|||
|
|||
|
http://www.clisp.org/impnotes/src-files.html
You're probably best off digging through the source to see how it's done. also: http://www.bcl.hamilton.ie/~nmh/t3x....mpty-space.zip is a book that shows you how to write an implementation of Scheme from scratch. It might be of interest. |
|
#3
|
|||
|
|||
|
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] Can i use clisp as shell ? | sw2wolf | General | 3 | October 18th, 2011 08:09 |
| [Solved] Cell phone (smart phone) imate K-jam - PocketPC -Microsoft Windows Mobile V 5.0 | vigol | Peripheral Hardware | 4 | December 25th, 2009 00:58 |
| 8.0 Beta 1 pros & cons | iic2 | General | 11 | July 8th, 2009 20:55 |
| Any Plans to port FreeBSD to the CELL CPU | cpu | Other Architectures | 3 | January 7th, 2009 18:19 |