Skip to content
Snippets Groups Projects
  1. Mar 15, 2021
  2. Mar 13, 2020
    • erwan's avatar
      fix: try to do a better job with extern types. · 777c3f4f
      erwan authored
      In the -2c mode, in presence of extern types, I was defining them as int.
      The idea was to have something that compiles, and then to ask the user
      to redefine its extern types.
      
      Now I define extern types as string (char*).
      
      The rationale of this change is that before, the generated code was only
      working for int, which is pretty useless as an extern type.
      
      Have string by default is actually much more useful, for instance to use
      string in a Lustre program.
      
      Also, adapt to changes done in lutils, where the string type has ben added.
      (sha:8619aa285ca8322ab9, i.e., > lutils  1.49.10)
      6.101.16
      777c3f4f
  3. Aug 29, 2019
  4. Dec 18, 2017
  5. Jun 27, 2017
  6. Jun 26, 2017
  7. Oct 07, 2016
  8. Sep 09, 2016
  9. Apr 10, 2015
  10. Feb 27, 2015
  11. Feb 13, 2015
    • Erwan Jahier's avatar
      soc2c: fix a bug occuring when copying arrays with memcpy(). · fffd1850
      Erwan Jahier authored
      Indeed, in order to copy an array, I used to generate something like
      
         memcpy(out, in, sizeof(in));
      
      but if 'out' and 'in' are arrays, and if 'in' is an argument of a function,
      sizeof() considers it as a pointer, not an array !!!!
      
      note that if 'in' is a local var, sizeof(in) works fine.
      
      To fix it, I use the type of the dest (instead of the id) as argument of sizeof.
      
      nb : The pb never occured before, as in the heap mode only the ctx is
      passed a args of step functions.
      fffd1850
  12. Feb 12, 2015
  13. Feb 09, 2015
  14. Oct 03, 2014
  15. Oct 02, 2014
  16. Oct 01, 2014
  17. Sep 29, 2014
  18. Aug 14, 2014
  19. Jul 09, 2014
  20. Jul 01, 2014
    • Erwan Jahier's avatar
      Soc2c: inline ITE soc, to make things simpler. · a4df5e5e
      Erwan Jahier authored
      Indeed, ite are polymorphic, and thus inventing names during soc
      instanciation is error-prone, ugly, innefficient, and increase the
      code size.
      
      Moreover, using C ite to translate them online (ie, without going
      trough a soc) is straigforward
      
      # of unexpected failures	104->101.
      a4df5e5e
  21. Jun 26, 2014
  22. Jun 24, 2014
  23. Jun 23, 2014
  24. Jun 19, 2014
    • Erwan Jahier's avatar
      Soc2c: Fix 2 bugs in the C code generation. · 9253be2f
      Erwan Jahier authored
      The first one in Soc2cIdent.type_to_short_string when enum and int were both
      translated by "i" ; as a consequence, some different soc ctx get the same name.
      
      The second one was due to the fact that car ident in gao switches were
      printed incorrectly (missing "ctx->" or "node_no_mem_ctx.").
      
      nb:  unexpected failures 162-> 149
      9253be2f
    • Erwan Jahier's avatar
      Soc2c: add support for array slices. · e00fbd2a
      Erwan Jahier authored
      nb:  unexpected failures 175-> 162
      
      Also name step function consistent and uniquely
      e00fbd2a
  25. Jun 18, 2014
  26. Jun 12, 2014
Loading