Skip to content

Implementing Closures in MIR C Efficiently #231

Answered by vnmakarov
darko20 asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know what do you mean exactly. I see not necessary read memory l->a right after its storing. It is not that bad as modern processors have store-to-load forwarding but still it is better to remove redundant load.

MIR-generator right now does practically nothing for memory access optimizations.

I am sure I'll work on improving code for memory accesses. I thought about this many times. On the first stage it will be probably adding alias info to MIR memory operands, generation of this info by c2m based on type info, and using alias info for moderate memory optimizations. In the future flow sensitive point-to-analysis might be implemented.

I'd like to keep a balance between optimizatio…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@darko20
Comment options

@vnmakarov
Comment options

@darko20
Comment options

Answer selected by darko20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants