Author Topic: HEX code generator ?  (Read 4715 times)

Atelier B fan

  • Newbie
  • *
  • Posts: 1
    • View Profile
HEX code generator ?
« on: May 13, 2019, 04:06:01 AM »
Hi,

In the lecture 2 (2'45), you mentionned an HEX code generator. Is it available right now with Atelier B ? How to use it ?

Thierry Lecomte

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: HEX code generator ?
« Reply #1 on: May 14, 2019, 02:44:43 AM »
The HEX code generator is for PIC32 programs (binary format). It is embedded in the Atelier CLEARSY Safety Platform in one of the two chains providing binaries (https://www.clearsy.com/en/our-tools/clearsy-safety-platform/).



This code generator is not (yet) part of the Atelier B.

Thierry Lecomte

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: HEX code generator ?
« Reply #2 on: May 15, 2019, 03:09:21 AM »
To be more precise, HEX code generator supports a subset of the B0 language / with additional constraints. For example:
  • types limited to INTEGER types limited to uint8_, uint16_ and uint32_
  • single condition for IF THEN ELSE (meaning tests have to be nested), with testing operators in =, <, <=
  • local variables (clause VAR IN) have to be typed before used with the var: (var: type) substitution
  • no computation in operation call and test: computation has to be performed before the operation call / test
  • no operation call in initialisation
  • digital inputs/outputs take values in {IO_OFF, IO_ON}

but also provides some extensions with predifined operators (bitwise and arithmetic).