Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo: Disable compiler optimization #712

Merged
merged 2 commits into from
Nov 17, 2024

Conversation

RobLoach
Copy link
Contributor

Using -O2 across the demos enables some optimization, which is great, but results in slow compilation. This can be particularly slow when testing out some new components during development. I recommend diabling this to speed up compilation when testing.

@awschult002
Copy link
Contributor

awschult002 commented Oct 21, 2024

if you havent heard of the "Tiny C Compiler" I cannot recommend it enough. Its the fastest compiler out there and its absolutely perfect for super quick development testing. I would not recommend it for release because its non-optimizing; but I use it all of the time for testing and its lightning fast.

https://github.com/TinyCC/tinycc

i am not recommending that the project call out this compiler, because the project uses the environment variable for that, which is preferred. I just have my env var setup to use tcc. works great

@RobLoach
Copy link
Contributor Author

Glad switching the CC environment variable worked well, and happy to hear that tinycc compiles it fine 👍

Updated the PR.

@riri riri merged commit 262a10e into Immediate-Mode-UI:master Nov 17, 2024
1 check passed
@riri
Copy link
Contributor

riri commented Nov 17, 2024

I just made a quick clone and try on sdl and x11 demos, I think it's trivial enough to merge without further tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants