Project

General

Profile

« Previous | Next » 

Revision 9b0432bc

Added by Corentin Lauverjat over 1 year ago

  • ID 9b0432bc4c6c7165663ff1239ee93adac0a4a34d
  • Parent 9e88590e

Using deriving_ppx to derive show_ functions for the main types defined in lib/
Applying the same procedure of operator specialization taken from the C backend to Tiny
Lustrev has now a functional Tiny plugin : * -unrolling option has been renamed -duration because from an outside observer it is the length in steps of the abstract simulation * the plugin takes a JSON input file containing the bounds on input of the top node (option -bounds-input) * the plugins outputs its result in a Json format on the stdout. It can also output a {basename}_result.json file containing the result if the flag -tiny-output is provided
Adding a Tiny backend that generates Tiny code from Lustre
Repairing treatment of parsing error that was broken since transitioning from ocamlyacc to menhir

View differences:

src/compiler_stages.ml
3 3
open Lustrec.Utils
4 4
open Compiler_common
5 5
open Lustrec.Lustre_types
6
open Backends
7

  
6 8
module Mpfr = Lustrec_mpfr
7 9

  
8 10
exception StopPhase1 of program_t
......
293 295
      begin
294 296
      	Lustrec.Log.report ~level:1 (fun fmt -> fprintf fmt ".. no C code generation for lusi@,");
295 297
      end
298
  | "tiny", ".lus" -> 
299
  begin
300
    Tiny_backend.translate_to_tiny basename prog machine_code dependencies
301
  end
296 302
  | "java", _ ->
297 303
     begin
298 304
       (Format.eprintf "internal error: sorry, but not yet supported !"; assert false)

Also available in: Unified diff