boschresearch / blech

Blech is a language for developing reactive, real-time critical embedded software.
Apache License 2.0
72 stars 6 forks source link

Deprecate @[CFunction(source="<file>.c")] #34

Closed schorg closed 3 years ago

schorg commented 4 years ago

Problem description

With the upcoming module system it will be possible to compile blech code for a specific package.

The default package is "blech" which might change to "mylib", when building for the "mylib" package.

Problem: The name for the generated code contains the package name as part of its unique global name. This changes when we choose another package name.

As always: a manually completed template needs manual rework if the template changes.

Solution

Deprecate and remove the source attribute. It can be substituted with a more elaborate (single- or multiline) binding.