Return mapping from variables to registers in fate compilation #902
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "ghallak/vars-registers-map"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR will change the result of the compilation to include a mapping from variables to fate registers.
Code example:
Registers in the compilation result:
@radrow Notice how the local function
X.g
is called.X.g
. I'm using an existing function (aeso_fcode_to_fate:make_function_name/1
) to get the functions names. I don't think we need this distinction in the names between local function and entrypoints. Should it just be calledg
instead of.X.g
?Created by: radrow
Yes, let's make it just g. I think you can hack it around by calling that make name with the env set to entrypoint/nonprivate or something like that
I have made the change here f0db4fb96b9b6edcada96291d656a45c3eb1b924 and here is how the new output looks like:
Created by: hanssv
Review: Dismissed
Looks good! Just checking, there is no usage of the compiler where the extra data is a burden? If so it might be an idea to make this configurable?
Created by: radrow
Review: Approved
@hanssv I have added a compiler option that enables/disables the returning of the newly introduced map here
ee37e187e8
.Created by: hanssv
Review: Approved
Merged by: ghallak at 2022-10-25 06:42:03 UTC