332 Commits

Author SHA1 Message Date
Gabriel Scherer
2692b14a4e
Merge pull request #58 from curiousleo/fix-double-map-import
Don't import "map" twice in compile.scm
2022-04-16 12:07:39 +02:00
curiousleo
473f1bee9a Stop importing "map" twice
Fixes this Guile warning when running `guile compile.scm`:

> WARNING: (guile-user): `map' imported from both (srfi srfi-1) and
> (rnrs base)
2022-04-16 14:54:13 +08:00
Gabriel Scherer
45045d0afa
Merge pull request #54 from gasche/string-chars-tailrec
compile.scm: make the `string-chars` lexer tail-recursive
2021-09-25 10:47:47 +02:00
Gabriel Scherer
d3164b5dcc
Merge pull request #56 from roptat/arches
Makefile: build for any architecture
2021-09-24 18:57:36 +02:00
Gabriel Scherer
1bb9b9c645
Merge pull request #53 from gasche/compiler-serialize-32
compile.scm serialization: support smaller sizes, in particular 32bit compat
2021-09-24 18:56:59 +02:00
Gabriel Scherer
ccb041cc30 interpreter: convert the trace counter to Int64 for 32bit portability 2021-09-24 18:23:43 +02:00
Gabriel Scherer
e573acef36 compile.scm: emit warning when value overflows 32bit systems 2021-09-24 18:23:43 +02:00
Gabriel Scherer
c99c947c18 compile.scm serialization: emit 32bit-format header when possible 2021-09-24 18:23:39 +02:00
Gabriel Scherer
8eb89941db compile.scm serialization: support smaller sizes, in particular 32bit compat 2021-09-24 18:23:04 +02:00
Gabriel Scherer
bd70f69880 compile.scm: make the string-chars lexer tail-recursive
This matters because the ocamlyacc parser presents the parsing
automaton as large string literals full of escaped characters: the
longest of them is a string literal of 43292 escaped characters. On my
machine, recent versions of compile.scm stack overflow when compiling
this file (not sure when the problem started).
2021-09-24 18:22:07 +02:00
Gabriel Scherer
5ca93414d5
Merge pull request #55 from gasche/fix-interpreter-mli
fix the (apparently generated?) .mli files in interpreter/
2021-09-23 15:50:00 +02:00
Julien Lepiller
67f16db183 Makefile: build for any architecture 2021-09-22 12:57:29 -04:00
Gabriel Scherer
b103dc5241 test that we support higher-order functors 2021-09-08 18:20:54 +02:00
Gabriel Scherer
3c96f028e0 fix the (apparently generated?) .mli files in interpreter/ 2021-03-20 09:00:44 +01:00
Gabriel Scherer
48f67bfa87 compile.scm: make the string-chars lexer tail-recursive
This matters because the ocamlyacc parser presents the parsing
automaton as large string literals full of escaped characters: the
longest of them is a string literal of 43292 escaped characters. On my
machine, recent versions of compile.scm stack overflow when compiling
this file (not sure when the problem started).
2021-03-20 08:30:52 +01:00
Nathanaël Courant
506280c6e0 Compilation instructions 2021-02-24 08:53:34 +01:00
Nathanaël Courant
a56c0cd4f0 Fix Makefile 2021-02-24 08:41:15 +01:00
Nathanaël Courant
4a57e21b68 Add missing interp.byte dependencies 2021-02-23 18:57:10 +01:00
Nathanaël Courant
3f41dc0710 Add missing interp.byte dependencies 2021-02-23 18:54:31 +01:00
Nathanaël Courant
bb7aac5fc8 Add missing build of .depend 2021-02-23 18:51:18 +01:00
Nathanaël Courant
4518830a46 Update top-level Makefile to reflect parallel compilation of interpopt.opt 2021-02-23 14:56:03 +01:00
Nathanaël Courant
5f95304e2a Add mli files for interpreter, parallel compilation for interpopt.opt 2021-02-23 14:53:05 +01:00
Nathanaël Courant
53750f1595 Remove locations from lex/ as well 2021-02-22 10:13:26 +01:00
Nathanaël Courant
913e169a4d Add fullboot target for testing DDC 2021-02-22 10:08:25 +01:00
Nathanaël Courant
320a4b34a5 Remove paths from files produced by ocamlc 2021-02-22 10:02:03 +01:00
Julien Lepiller
11dfdff978 Fix last steps 2021-02-20 19:36:16 +01:00
Julien Lepiller
cd06e55449 Fix parallel build with -j. 2021-02-20 10:07:33 +01:00
Nathanaël Courant
f8ed42b26d Parallel compilation 2021-02-19 12:07:54 +01:00
Nathanaël Courant
92037d7271 Parallel build 2021-02-18 22:51:50 +01:00
Nathanaël Courant
30ba83b6f4 Revert change of hex constants in lexer 2021-02-18 09:41:49 +01:00
Nathanaël Courant
bb65661b32 Remove binary file added by mistake 2021-02-18 08:01:04 +01:00
Nathanaël Courant
c68bec0f39 Optimize calls to primitives 2021-02-18 08:00:46 +01:00
Nathanaël Courant
ae505edded Add missing file 2021-02-17 15:35:11 +01:00
Nathanaël Courant
359fbd49ce Fix build 2021-02-17 15:31:43 +01:00
Nathanaël Courant
2579ce96e3 Use interpopt.opt for bootstrap 2021-02-17 15:21:13 +01:00
Nathanaël Courant
f375799b0d Make interp compatible with ocamlopt 2021-02-17 15:16:14 +01:00
Nathanaël Courant
dc70540748 Add script for computing timings 2021-02-17 15:15:16 +01:00
Nathanaël Courant
5c53d505c1 Fix Makefile 2021-02-17 08:40:41 +01:00
Nathanaël Courant
7969c70193 Changes to make Makefile work 2021-02-16 14:05:22 +01:00
Nathanaël Courant
bc417c81a3 Timings in Makefile 2021-02-15 17:44:43 +01:00
Nathanaël Courant
641e1d22b3 Break dependency loop in Makefile 2021-02-15 17:40:34 +01:00
Nathanaël Courant
4caff306bd Add makefile for make_opcodes 2021-02-15 15:59:07 +01:00
Nathanaël Courant
415c38818d Remove more now unneeded files 2021-02-15 15:36:05 +01:00
Nathanaël Courant
25e476781f Remove old files 2021-02-15 15:24:38 +01:00
Nathanaël Courant
ca27784d19 Makefile for lexer bootstrap 2021-02-15 15:20:41 +01:00
Nathanaël Courant
30a585a943 Stop using genfile.sh 2021-02-15 14:44:55 +01:00
Nathanaël Courant
98e51391b3 Revert files to ocaml versions when possible 2021-02-15 13:48:26 +01:00
Nathanaël Courant
9e3e03d70f Add really inefficient interval patterns 2021-02-15 11:14:52 +01:00
Nathanaël Courant
a18951cf07 Add int32, int64 and nativeint constants 2021-02-15 10:56:33 +01:00
Nathanaël Courant
64d0f85037 Now that hashtbl is supported, make create_hashtable compatible 2021-02-15 09:44:42 +01:00