boschresearch / blech

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

Removed tmp variable for returned compound literal #65

Closed schorg closed 3 years ago

schorg commented 3 years ago

Removed memset if init value or returned value is not literal - that means the result of a function call. Still to factor out some code duplication in function translator and activity translator for variable declarations and return statements.

Signed-off-by: Franz-Josef Grosch schorg@gmail.com