---
title: "Discussion on \"Why my compiler won't optimize for you\" | Hashnode"
description: "Discussion on \"Why my compiler won't optimize for you\". GCC optimized my C loop into a single instruction. What that means for hand-written assembly, and why my game's compiler is deliberately \"dumb.\""
url: "https://hashnode.com/posts/why-my-compiler-wont-optimize-for-you/6a60153b7110571232168074"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why my compiler won't optimize for you](https://mathijs-frank.hashnode.dev/why-my-compiler-wont-optimize-for-you?utm_source=hashnode&utm_medium=feed)

GCC optimized my C loop into a single instruction. What that means for hand-written assembly, and why my game's compiler is deliberately "dumb."

Jul 22 · 5 min read · mathijs-frank.hashnode.dev  
Updated Jul 23  
Read the article

-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)
-   [#compilers](https://hashnode.com/tag/compilers)
-   [#optimization](https://hashnode.com/tag/optimization)
-   [#c](https://hashnode.com/tag/c)
-   [#bytecode](https://hashnode.com/tag/bytecode)
-   [#gamedev](https://hashnode.com/tag/gamedev)
-   [#game-development](https://hashnode.com/tag/game-development)
-   [#assembly](https://hashnode.com/tag/assembly)
-   [#assembly-x8664-assembly-programming](https://hashnode.com/tag/assembly-x8664-assembly-programming)
-   [#assembly-language](https://hashnode.com/tag/assembly-language)

## Written by

[Mathijs Frank](https://hashnode.com/@mathijs-frank)

@mathijs-frank · London, UK

  
[View profile](https://hashnode.com/@mathijs-frank)

Sharing low-level systems and performance projects.

Systems engineer, writing build logs on low-level systems and performance projects.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
