Commit graph

371 commits

Author SHA1 Message Date
Justin Ethier
ecf07517d2 Cleanup, display newline before exiting 2015-04-23 15:16:53 -04:00
Justin Ethier
c4c5b04a5b No longer needed 2015-04-23 15:10:06 -04:00
Justin Ethier
4230295683 Fix load_varargs to prevent local var corruption
Assigning to a varargs variable that is not passed by the C caller can result in corruption of another parameter. EG: the var contains data for another parameter, which is then changed unexpectedly. The code was rewritten to assign to a new variable, to prevent this from happening.
2015-04-23 15:06:49 -04:00
Justin Ethier
5855c77a74 Added notes 2015-04-23 12:33:34 -04:00
Justin Ethier
efb11319a0 Added more debugging 2015-04-23 12:00:05 -04:00
Justin Ethier
8fe0876265 halt primitive is implemented, no need for printf 2015-04-22 18:13:45 -04:00
Justin Ethier
c2abf99861 Added bt 2015-04-22 18:12:50 -04:00
Justin Ethier
4b87b9afab Only adding this temporarily for debugging 2015-04-22 18:11:55 -04:00
Justin Ethier
84b4373974 Self-contained example 2015-04-22 18:03:32 -04:00
Justin Ethier
a1592ca61f testing 2015-04-22 17:49:53 -04:00
Justin Ethier
abc37155a9 Pass actual arg to numerical op raise() 2015-04-22 13:13:33 -04:00
Justin Ethier
42b524f9cb Relocated prorotypes to common place 2015-04-21 17:22:31 -04:00
Justin Ethier
cfdac7963d Cleanup of runtime library 2015-04-21 17:16:29 -04:00
Justin Ethier
5118a4e456 Added prototypes for Cyc_sub, etc 2015-04-20 13:57:23 -04:00
Justin Ethier
538a010893 Allow varargs for - * / as well as + 2015-04-20 13:55:26 -04:00
Justin Ethier
befa629daa Clarified TODO 2015-04-17 22:06:31 -04:00
Justin Ethier
3901c32a7b Cleanup 2015-04-17 22:05:30 -04:00
Justin Ethier
178c5f622f Removed debug lines 2015-04-17 22:20:09 -04:00
Justin Ethier
897e310d44 Cleanup 2015-04-17 22:17:48 -04:00
Justin Ethier
e44ece1986 Handle receiving a primitive as the next function after GC 2015-04-17 21:54:06 -04:00
Justin Ethier
36bf695eb1 Added possible solution 2015-04-17 15:15:33 -04:00
Justin Ethier
6f4581543d Debugging icyc crash 2015-04-17 14:18:46 -04:00
Justin Ethier
8a6a54a017 Added TODO for WIP items 2015-04-16 22:55:55 -04:00
Justin Ethier
060d256f4a Properly handle rt errors 2015-04-16 22:39:04 -04:00
Justin Ethier
13c9d44500 Cleanup 2015-04-16 18:10:11 -04:00
Justin Ethier
2e9562565f WIP 2015-04-16 17:24:04 -04:00
Justin Ethier
ef8b97e1b6 Added clarifying comments 2015-04-16 14:03:55 -04:00
Justin Ethier
ad14045446 Fix compilation errors 2015-04-16 13:59:37 -04:00
Justin Ethier
9a370aa532 Added CPS note 2015-04-16 12:52:11 -04:00
Justin Ethier
388d0c3017 WIP - move Cyc-current-exception-handler to runtime 2015-04-15 22:58:39 -04:00
Justin Ethier
01b33d0227 Added notes on adding error handling to runtime 2015-04-15 18:07:21 -04:00
Justin Ethier
b51e3747e2 Use a common numeric operation va_list function 2015-04-15 13:58:51 -04:00
Justin Ethier
6cadac2be8 Renamed cyc_sum family of functions 2015-04-15 13:43:02 -04:00
Justin Ethier
3193ff1dd9 Only print GC start/done when in debug mode 2015-04-15 13:37:13 -04:00
Justin Ethier
4952129efb Removed debug printf's 2015-04-15 13:32:40 -04:00
Justin Ethier
abac04c58e Replace set-cell! with set-car!
Set-cell was just a wrapper on set-car anyway, but it was failing to record a mutation, which would cause problems later on for the GC. By using set-car directly we avoid GC issues and simplify the runtime code a bit.
2015-04-15 13:30:28 -04:00
Justin Ethier
03df6405e6 debugging 2015-04-14 18:11:31 -04:00
Justin Ethier
98fc7fa642 Added varargs sum, but working through issues with segfaults 2015-04-14 13:52:14 -04:00
Justin Ethier
2de7b46904 Stubs for va-args sum 2015-04-13 22:42:41 -04:00
Justin Ethier
88ad7b614e Moved code to group together primitive config 2015-04-13 17:56:57 -04:00
Justin Ethier
bbf7c2a568 Cleaned up TODO list 2015-04-13 13:59:22 -04:00
Justin Ethier
a5c1d01653 Precompute application of a primitive to literals
Precompute primitives when it is safe to do so
2015-04-13 13:51:21 -04:00
Justin Ethier
7f82bf2617 WIP - Cyc_raise 2015-04-10 17:46:48 -04:00
Justin Ethier
04c11eabfb Replacing __sum macro with Cyc_sum 2015-04-10 14:56:47 -04:00
Justin Ethier
5be68ec60c Experimenting with Cyc_sum 2015-04-10 14:16:15 -04:00
Justin Ethier
4b2a5ae35a Need to be able to call an error handler from runtime 2015-04-10 14:16:01 -04:00
Justin Ethier
2a6941a9e6 Removed fixed item 2015-04-09 21:53:28 -04:00
Justin Ethier
010d3e6a18 Modified code to account for numeric tower, fixed up number->string 2015-04-09 21:52:49 -04:00
Justin Ethier
cac2144f76 WIP 2015-04-09 18:04:32 -04:00
Justin Ethier
d9add7ab54 WIP 2015-04-09 18:04:06 -04:00