-
Notifications
You must be signed in to change notification settings - Fork 3
Statements
CoreDSL 2 supports the following standard C constructs:
- Branches:
if
/else
,switch
/case
/default
- Loops:
for
/while
/do
...while
- Jumps:
continue
/break
Function recursion and irreducible control flow are prohibited.
Note: This section is outdated and will be rewritten soon
The spawn
keyword marks a statement (usually, a compound statement or a function call) for asynchronous execution.
Spawn statements are only allowed as the last statement of an instruction's behavior specification (this implies that such statements cannot be nested.
Semantically, the execution of the instruction ends at the spawned statement, which itself continues to execute in the background.
Multiple spawn statements may overlap at runtime. Hence, the implementation must define an arbitration mechanism to access shared resources such as register files or address spaces.