Leandro Ostera
ee2f3b428c
Move typed_impl to Typedtree.t
2020-11-05 19:06:12 +01:00
Leandro Ostera
f6e428acf2
Introduce typed_impl record
2020-11-05 18:29:45 +01:00
Leandro Ostera
3a125b8c3c
Expose module signature when typing implementation
...
While working on a new backend for OCaml to generate Erlang sources, I
found the need to read the .cmi file back into a `Types.signature`
value.
@Drup spotted that I was reading the file and pointed out this value was
already being read during the type checking process.
A quick check at the `Typedtree.module_coercion` showed us that it would
be difficul to extract the same information that is readily available in
the signature value.
This change will expose the signature value directly, so other backends
relying on this signature information do not need to do the extra work
of reading it again.
2020-11-05 17:33:19 +01:00
Greta Yorsh
855c13cd6e
ability to restart compilation from .cmir-linear IR files
2020-10-13 15:07:13 +02:00
Mark Shinwell
72ea849d2a
Move some middle-end files around ( #2281 )
...
* Various file moves in the middle end: this is the first stage of improving separation between the middle end and backend.
* Creation of file_formats/ directory (with associated file moves) to hold the definitions of compilation artifact formats.
* Creation of lambda/ directory (with associated file moves) to hold Lambda language definition files, transformation passes and construction passes from Typedtree.
* Disable (hopefully temporarily) dynlink, debugger and ocamldoc for the dune build.
2019-04-01 17:18:47 +01:00
Gabriel Scherer
2ef45b3621
driver: consistently use _ as word separator
2019-01-04 17:56:12 +01:00
Drup
abc0b7e3ed
Add compile_common.ml which contains the basic compilation pipeline.
...
Factorize the part from compile.ml and optcompile.ml.
2018-07-27 15:07:43 +02:00
sliquister
ae1317caae
Add option to dump the output of e.g. -dlambda in a file ( #1913 )
2018-07-27 08:51:53 +01:00
Fabrice Le Fessant
2ecd3f43e4
Fix order of arguments with -cclib XXX ( #761 )
2016-12-14 13:14:21 +00:00
Damien Doligez
5401ce8473
Update headers for the new license.
...
Remains to be done: remove all headers in testsuite/tests.
2016-02-18 16:59:16 +01:00
Pierre Chambart
b0b0f6609c
Enable flambda
2016-01-28 15:04:47 +01:00
Fabrice Le Fessant
ad6c285818
Improved implementation of OCAMLPARAM
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13747 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-05 16:34:40 +00:00
Damien Doligez
def31744f9
remove all $Id keywords
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Alain Frisch
4cfd2fc2a6
Reverting bad commit.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12058 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-20 14:23:34 +00:00
Alain Frisch
7fe8c8ce6f
Fix #5490 .
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12057 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-20 14:21:03 +00:00
Damien Doligez
3b507dd1aa
renaming of Objective Caml to OCaml and cleanup of copyright headers
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-27 14:17:02 +00:00
Xavier Leroy
3dce37c196
Generalisation de l'option -o
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6395 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-06-13 12:46:41 +00:00
Jacques Garrigue
7f5bc2ec5a
changements printer
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2910 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-07 05:02:33 +00:00
Xavier Leroy
cc0f32b054
Changement de la licence
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-17 18:59:06 +00:00
Xavier Leroy
2301d778e7
Renommage en Objective Caml
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@782 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-04-30 14:53:58 +00:00
Xavier Leroy
8c3bf593c4
Option preprocessing mise dans Clflags.
...
optmain: ajout de -linkall.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@764 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-04-29 13:19:07 +00:00
Daniel de Rauglaudre
10fe0770d7
option preprocesseur aussi pour cslopt
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@758 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-04-23 17:13:52 +00:00
Xavier Leroy
e4066357b1
Ajout des notices de copyright
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@195 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-08-09 15:06:35 +00:00
Xavier Leroy
b827a47052
Fichiers drivers pour le compilo natif.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@61 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-07-02 16:51:07 +00:00