Version 1.27 – release date: November 15th, 2018

We are pleased to announce the release of CPAL version 1.27. The highlight of this new release is without a doubt the introduction of C code generation from CPAL code. Code and associated makefile can be generated for the simulation mode and the real-time execution mode for Posix1003.1c OSes and the Zephyr OS. Caveat: this feature should be considered in alpha stage, we expect it to be mature with the release of CPAL version 2.0 during Q1/2019. Noteworthy as well, the CPAL code beautifyer can now also be executed from within the CPAL-Editor.

What is new

  • CPAL-Editor: CPAL code beautifyer can be executed from the “Edit” menu
  • CPAL-Editor: C code generation (alpha stage) and makefile generation for Posix1003.1c, Zephyr OS and simulation mode. CPAL code is converted into C code by executing the “Generate C code” function located under the “Run” menu of the CPAL-Editor. The makefile necessary to compile the C code will be created as well. The options for code generation are:

    – “flatten” (mandatory for now): means that a single large C file will be generated including the C code of the external dependencies (i.e., the included CPAL files such as the CPAL standard library).

    – “C for simulation”: generate a CPAL program that runs in simulation mode.

    – “C for Ptask”: generate C code for the PTASK library that provides high-level scheduling primitives (periodic tasks, mode changes, synchronization, etc) on top of the standard Posix pthread library.

    – “C for Zephyr”: generate C code for the Zephyr OS.

    – “Library”: generate C code without process instantiation that can be used in a library or on non-supported platforms.

    – other code generation options: currently only “–verbosity” is possible to obtain more debugging information during code generation process.

    Generation C code from within the CPAL-Editor

    Options available for C code generation.

  • CPAL-Editor: support for CTRL-A in “CPAL Execution” dialog
  • CPAL-Editor: load sample demo workspace at first startup

What has been fixed or improved

  • CPAL-Editor: legend added in FSM state Gantt charts
  • CPAL-Editor: add confirmation on DEL key in tree
  • CPAL-Editor: double clicking on a parse error in the console will open included file if needed