Refactor scratch language and let the user specify m2c flags#1508
Refactor scratch language and let the user specify m2c flags#1508dbalatoni13 wants to merge 8 commits intodecompme:mainfrom
Conversation
| asm.data, | ||
| context, | ||
| compiler, | ||
| compiler.language, |
There was a problem hiding this comment.
I have this problem that the scratch's language is only decided below, when it gets serialized, so for now I just passed the compiler's default language to the decompiler at scratch creation. Do you have an idea how we could determine the language beforehand?
There was a problem hiding this comment.
Maybe instead of putting together the --target flag manually, we could do the same what we do with compilers, just pass through the one defined in the preset (or scratch when the user decompiles after creation).
There was a problem hiding this comment.
I think we should probably have default language for compilers* and then bite the bullet and dedicated field on the scratch...? if it makes the most sense. I try to avoid adding fields to Scratch, but maybe this one is actually worth it
* I know we currently have compiler.language but we seem to rarely override it from C, where it should most likely be C++ for any gc/wii compilers.
|
I'm like 80% done with the feature. Have to get it to work and then we can start testing. :) |
|
We have some things that are all queried from the backend and filtered on the frontend like |
|
Have to remove TODO comments.
|
Will solve #1418. Decided to push my work so far, so we can discuss it as I work.