#2. Constant Propagation | Optimization in PL

Published: 19 November 2017
on channel: aNNiMON
594
16

Constant Propagation substitutes the value of constants in expressions.
For example, `x = 5; y = x * 2 + 9` can be replaced by `x = 5; y = 5 * 2 + 9` and after constant folding optimization, the expression will be `x = 5; y = 19`

🎥 Continuation of video series about creating own programming language. From this course you'll learn about such algorithms:
constant folding;
constant propagation;
dead code elimination;
expression simplification;
instruction combining.
Source code: https://github.com/aNNiMON/Own-Progra...
See also the main course to create a programming language:    • Как создать свой язык программирования  

👉 Visit my website https://www.annimon.com/
There you will find a lot of useful articles and lessons, you can ask a question interesting you or discuss it on the forum.

✏️
VK: https://vk.com/annimon_com
Twitter:   / annimon_com  
Telegram: https://t.me/annimon_com


Watch video #2. Constant Propagation | Optimization in PL online without registration, duration hours minute second in high quality. This video was added by user aNNiMON 19 November 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 594 once and liked it 16 people.