Commit Graph

125 Commits

Author SHA1 Message Date
Yuichi Nishiwaki 6968a9d9ef fix compiler 2017-04-14 20:28:22 +09:00
Yuichi Nishiwaki 9cc40bd46a support top-level begin in define-library 2017-04-12 14:17:52 +09:00
Yuichi Nishiwaki cf63d541a2 diet object size 2017-04-12 13:55:51 +09:00
Yuichi Nishiwaki 5436102a3e fix alignment issues 2017-04-12 13:35:50 +09:00
Yuichi Nishiwaki 03067f5ab5 cleanup 2017-04-12 13:23:32 +09:00
Yuichi Nishiwaki 619a014adf calculate object size from type 2017-04-12 13:18:06 +09:00
Yuichi Nishiwaki 8d886db1db avoid variable-length field 2017-04-12 13:09:21 +09:00
Yuichi Nishiwaki 1063c45105 temporarily remove bitmap gc 2017-04-12 02:54:03 +09:00
Yuichi Nishiwaki 972e9eecc1 remove unused api 2017-04-09 23:58:17 +09:00
Yuichi Nishiwaki 01c817799b move pic_printf family to port.c 2017-04-09 23:39:24 +09:00
Yuichi Nishiwaki 8592802afc move pic_fopen to ext/file.c 2017-04-09 22:14:04 +09:00
Yuichi Nishiwaki 69cdedc79f don't use zero length arrray field for struct proc 2017-04-09 19:42:03 +09:00
Yuichi Nishiwaki 960029841e use MSB of tt as mark bit 2017-04-09 19:14:02 +09:00
Yuichi Nishiwaki 287e7473b4 don't expose struct weak to users 2017-04-09 18:12:13 +09:00
Yuichi Nishiwaki 8e1d16e961 bugfix: recursive record objects break the write procedure 2017-04-09 17:49:45 +09:00
Yuichi Nishiwaki 3ac392628e recurd-type must be of symbol type 2017-04-09 17:34:56 +09:00
Yuichi Nishiwaki b62ec2ad9a current-*-port family are not provided when PIC_USE_STDIO=0 2017-04-09 17:29:25 +09:00
Yuichi Nishiwaki 339e8e8419 __builtin_unreachable() seems not emit runtime error 2017-04-09 17:25:12 +09:00
Yuichi Nishiwaki d52dfad671 struct context -> struct frame 2017-04-09 15:49:04 +09:00
Yuichi Nishiwaki 1d28290c14 remove pic_get_backtrace 2017-04-09 15:28:09 +09:00
Yuichi Nishiwaki c634948bf1 WIP: fix the compiler 2017-04-09 13:25:34 +09:00
Yuichi Nishiwaki 16dafdd032 remove pic_ prefix from pic_*_ptr family 2017-04-06 22:29:02 +09:00
Yuichi Nishiwaki 7f430e000b quoted pairs or vectors are compiled to runtime cons or vector 2017-04-06 20:34:13 +09:00
Yuichi Nishiwaki 1e345d8228 WIP: add compiler 2017-04-05 16:18:00 +09:00
Yuichi Nishiwaki c1a7f6d2d8 integrate boot.scm and compile.scm 2017-04-04 19:00:37 +09:00
Yuichi Nishiwaki 463b73f11f reimplement macro expander in scheme 2017-04-04 15:05:34 +09:00
Yuichi Nishiwaki 82939650a4 add macro-objects and global-objects 2017-04-04 03:55:23 +09:00
Yuichi Nishiwaki b9ec9c607b update bin/picrin-bootstrap 2017-04-04 03:00:43 +09:00
Yuichi Nishiwaki dfc6fa5e77 fix regression 2017-04-04 02:42:42 +09:00
Yuichi Nishiwaki 889291049f use dict for pic->macros 2017-04-04 02:32:20 +09:00
Yuichi Nishiwaki 42f378b20e forgot to remove eval.c 2017-04-04 02:29:31 +09:00
Yuichi Nishiwaki 6c3c505aa4 move simple macros to (picrin macro) 2017-04-04 02:16:18 +09:00
Yuichi Nishiwaki af5acb6c4f no consing when getting value from ephemeron table 2017-04-04 01:25:46 +09:00
Yuichi Nishiwaki d776adba34 add load&compile functions 2017-04-04 00:52:59 +09:00
Yuichi Nishiwaki b9cfbe8276 precompile library system 2017-04-04 00:02:00 +09:00
Yuichi Nishiwaki bba2abffde WIP: precompile macros 2017-04-03 23:39:30 +09:00
Yuichi Nishiwaki 92bbf28621 add PIC_USE_LIBRARY flag 2017-04-03 22:09:19 +09:00
Yuichi Nishiwaki e273cba24d fix include path 2017-04-03 13:32:47 +09:00
Yuichi Nishiwaki 8f6113f61b library system is now implemeted in scheme 2017-04-03 00:37:37 +09:00
Yuichi Nishiwaki 408bf4cf48 use dictionary for pic->globals 2017-04-02 22:19:11 +09:00
Yuichi Nishiwaki d319a57422 WIP: reimplement library system in scheme 2017-04-02 22:15:38 +09:00
Yuichi Nishiwaki 7b3972e832 bugfix: initial value of parameter must be registered to the top
dynamic env
2017-04-02 01:13:03 +09:00
Yuichi Nishiwaki eaea31ee19 add assertions to type cast functions 2017-04-02 00:15:23 +09:00
Yuichi Nishiwaki 130d226d65 bugfix: no allocation between call of producer and pic_receive 2017-04-02 00:15:16 +09:00
Yuichi Nishiwaki c51be07a9a add dictionary-delete! and dictionary-has? 2017-04-01 20:00:30 +09:00
Yuichi Nishiwaki f7ab0a9cd6 bugfix: do not rewind arena_index up to before pic_try 2017-04-01 18:57:24 +09:00
Yuichi Nishiwaki 99c269e7ea bugfix: fix sequence point violation 2017-04-01 17:55:38 +09:00
Yuichi Nishiwaki b3aaee6e3a tear off contexts when invoking a continuation 2017-04-01 17:32:36 +09:00
Yuichi Nishiwaki 7d47d56b9c bugfix: forgot to remove pic->cp 2017-04-01 15:43:38 +09:00
Yuichi Nishiwaki 690384c5b4 make-ephemeron -> make-ephemeron-table 2017-03-31 15:59:22 +09:00
Yuichi Nishiwaki fc7b9a50f9 implment dynamic-wind in scheme 2017-03-31 15:41:25 +09:00
Yuichi Nishiwaki 449800c117 add pic->dyn_env 2017-03-31 14:39:01 +09:00
Yuichi Nishiwaki d478affabd manage ireps by gc 2017-03-30 23:29:08 +09:00
Yuichi Nishiwaki 2d8980b2d0 inline pic_eq_p when nan boxing is enabled 2017-03-30 22:41:32 +09:00
Yuichi Nishiwaki e7953146c3 pic_return -> pic_values 2017-03-30 21:53:49 +09:00
Yuichi Nishiwaki 637047fa83 remove call/cc nitro 2017-03-30 17:42:02 +09:00
Yuichi Nishiwaki 8d4a8be402 remvoe unused string APIs 2017-03-30 16:19:20 +09:00
Yuichi Nishiwaki c658b97dd2 add extra parameter to obj_ptr and obj_value 2017-03-29 08:32:28 +09:00
Yuichi Nishiwaki 70a4432d20 fix build on x64 2017-03-29 08:20:02 +09:00
Yuichi Nishiwaki d5882f6d6d update READMEs 2017-03-29 08:11:20 +09:00
Yuichi Nishiwaki 3e014b0e60 redefine value constructors/destructors as inline functions 2017-03-29 07:58:08 +09:00
Yuichi Nishiwaki 6d264f7b53 nan-boxing: embed type tag of full size to uint64_t 2017-03-29 07:23:35 +09:00
Yuichi Nishiwaki a2b2bf18ca pic_obj_value -> obj_value 2017-03-29 07:12:13 +09:00
Yuichi Nishiwaki b44d69b4da add value.h 2017-03-29 07:11:27 +09:00
Yuichi Nishiwaki f7484c089f cleanup 2017-03-29 00:03:23 +09:00
Yuichi Nishiwaki 53ec7384ca add length argument to pic_str() 2017-03-28 23:31:15 +09:00
Yuichi Nishiwaki b58a81ca39 reorganize files 2017-03-28 23:10:20 +09:00
Yuichi Nishiwaki d66ce64130 generate boot.c from boot.scm 2017-03-23 22:47:55 +09:00
Yuichi Nishiwaki 4834052556 bugfix: string-copy issue 2017-03-23 22:33:41 +09:00
Yuichi Nishiwaki ad1912119d update copyright year 2017-03-23 01:27:05 +09:00
Yuichi Nishiwaki 8ed21aa4a4 update lib/README.md 2017-03-23 00:42:20 +09:00
Yuichi Nishiwaki e0786a7015 extlib/benz -> lib/ 2017-03-22 23:41:38 +09:00
Yuichi Nishiwaki cd4b1be54c abandon cmake 2015-05-29 20:42:26 +09:00
Yuichi Nishiwaki 5441cf75f9 remove old Make stuff 2014-03-02 12:54:27 +09:00
Yuichi Nishiwaki e04ca4eb16 git file management 2013-10-20 18:47:05 +09:00