Simulate C-code
Moderator: Benj
Forum rules
Only feature requests will be considered here. General questions should not be posted in this forum.
Only feature requests will be considered here. General questions should not be posted in this forum.
- JonnyW
- Posts: 1230
- Joined: Fri Oct 29, 2010 9:13 am
- Location: Matrix Multimedia Ltd
- Has thanked: 63 times
- Been thanked: 290 times
- Contact:
Re: Simulate C-code
Hi.
The problem with C code is that there is not enough context to simulate a snippet reliably. Take the code:
A * B;
This may mean 'A multiplied by B', or it may mean 'B is a pointer to a variable of type A'. Without prior context (i.e. a whole program) we can not tell for sure which meaning to execute.
We could compile and execute the whole thing as byte-codes, but as Flowcode supports so many architectures this is a very large undertaking.
In short, this is not possible at this time, but would, I agree, be a really nice feature to have in the future given enough time to develop.
Jonny
The problem with C code is that there is not enough context to simulate a snippet reliably. Take the code:
A * B;
This may mean 'A multiplied by B', or it may mean 'B is a pointer to a variable of type A'. Without prior context (i.e. a whole program) we can not tell for sure which meaning to execute.
We could compile and execute the whole thing as byte-codes, but as Flowcode supports so many architectures this is a very large undertaking.
In short, this is not possible at this time, but would, I agree, be a really nice feature to have in the future given enough time to develop.
Jonny