Menu

#6 C generator still not implemented, what to do?!

open
nobody
5
2004-01-22
2003-12-02
Steve Waldo
No

It appears that the C code generator is still WIP, but I
decided to try it anyway. After generating the C version
of the FSMIsEven example, the main modification that
was required to the generated code was to remove any
try/catch/throw code. There was also some residual
class information in the function declarations that had to
be removed. Also, bool is not ANSI C so I changed it to
int. Etc, etc, etc.

The attached zip file contains a working version of the
FSMIsEven example based on the code generated for C.
I'm not happy with the level of interdependence
between the generated C code, the api code, and the
user main code. I'm sure there are better ways to do it!
(But it's a start anyway)

Discussion

  • Steve Waldo

    Steve Waldo - 2003-12-02

    The FSMIsEven example in C

     
  • Pavel Bekkerman

    Pavel Bekkerman - 2004-01-22

    Logged In: YES
    user_id=595910

    Steve, great! Really creative thinking!

    I'm currently at an outsource in Italy, and untill I'm back in
    Israel 03/2004, I simply can't find time to continue the
    FSMGenerator development.

    Unfortunately, people do not rush into developing modules for
    FSMGenerator, such as generators for new languages. Also, I
    don't get any current code patches.

    I'd really appriciate such help, and the code contributers will,
    of course, be awarded by the place in the FSMGenerator's
    CONTRIBUTORS list!

     
  • Pavel Bekkerman

    Pavel Bekkerman - 2004-01-22
    • summary: C code shouldn't use exceptions --> C generator still not implemented, what to do?!
     

Log in to post a comment.

MongoDB Logo MongoDB