#3. Dead Code Elimination | Optimization in PL

Опубликовано: 20 Ноябрь 2017
на канале: aNNiMON
810
21

Dead Code Elimination removes unused and unreachable statements from program.

For example, if condition in if block is false, the entire comparison can be removed or the else branch can be substituted.

if (3 == 5) {
func1()
} else {
func2()
}

might be replaced with

func2()

🎥 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


Смотрите видео #3. Dead Code Elimination | Optimization in PL онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь aNNiMON 20 Ноябрь 2017, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 810 раз и оно понравилось 21 людям.