Тёмный

Make existing code run faster, with compiler optimizations. 

Jacob Sorber
Подписаться 157 тыс.
Просмотров 24 тыс.
50% 1

Patreon ➤ / jacobsorber
Courses ➤ jacobsorber.thinkific.com
Website ➤ www.jacobsorber.com
---
I've found that a lot of my students don't know about compiler optimizations. Hopefully, this video will change that for you.
***
Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.
About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.
More about me and what I do:
people.cs.clemson.edu/~jsorber/
persist.cs.clemson.edu/
***
Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.
About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.
More about me and what I do:
www.jacobsorber.com
people.cs.clemson.edu/~jsorber/
persist.cs.clemson.edu/
To Support the Channel:
+ like, subscribe, spread the word
+ contribute via Patreon --- [ / jacobsorber ]
+ rep the channel with nerdy merch --- [teespring.com/stores/jacob-so...]
Source code is also available to Patreon supporters. --- [jsorber-youtube-source.heroku...]
Want me to review your code?
Email the code to js.reviews.code@gmail.com. Code should be simple and in one of the following languages: C, C++, python, java, ruby. You must be the author of the code and have rights to post it. Please include the following statement in your email: "I attest that this is my code, and I hereby give Jacob Sorber the right to use, review, post, comment on, and modify this code on his videos."
You can also find more info about code reviews here.
• I want to review your ...

Опубликовано:

 

27 май 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 14   
@xnehaxixh
@xnehaxixh 3 года назад
Man! These videos are helpful. Its not often you come across these resourceful videos as a learner or a student.
@alexandersage967
@alexandersage967 8 месяцев назад
So straightforward and clear. Perfect
@antonioastorino7488
@antonioastorino7488 4 года назад
Thank you, Jacob. Nice, concise, and useful!
@russellquadros2948
@russellquadros2948 2 года назад
Amazingly useful!
@d3stinYwOw
@d3stinYwOw 3 года назад
Nice! There's Os flag to make code smaller and Og to optimize for debug(?) :)
@quienestumadre
@quienestumadre 3 года назад
Thanks!
@tejassonawdekar
@tejassonawdekar 4 года назад
What platform are you using to compile and run the programs? I use code blocks. How can I check the speed/ execution time and is the a better metric like mips that can be seen here?
@JacobSorber
@JacobSorber 4 года назад
I don't typically use an IDE. Just a text editor, build system (like make), and my compilation tools, all from the terminal. I explained this a bit more in a previous video (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Pqf6H1WSbeY.html). I also have a video that goes over a few option for timing code. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-1KQqpiXxvWQ.html Hope that helps.
@marksladen2901
@marksladen2901 3 года назад
For Windows, CodeBlocks probably installed GCC using Mingw. You might need to put GCC into your system path in the Windows Environment variables. Then you can use the command prompt to compile. Yes, I know this is a year after you left your comment. Maybe this will help someone else.
@MrRenanwill
@MrRenanwill 2 года назад
I will test It with my window manager source code (dwm). It makes sense to make It faster. It already uses "-Os" flag but I am using "-O2" to see If It is faster. Looks nice up to now -- the first 10 minutes hahahah .
@MrRenanwill
@MrRenanwill 2 года назад
P.S.: I have encountered some problems with full-screen float windows, unfortunately. If you do not own the code or understands its mechanisms, do not make anything in the Makefile. You could, but there is a chance of the code not working, as in my case.
@kaushikjames5623
@kaushikjames5623 Год назад
superrrrrrrrrrrr da motta
@Israel213
@Israel213 Год назад
Good, but you forgot -O4 and -Os.
@questionmarc8
@questionmarc8 3 месяца назад
-O4 and above on the compilers mentioned are just equivalent to -O3
Далее
Why that "Perfect" Makefile Doesn't Work.
7:14
Просмотров 44 тыс.
How to Check Your Pointers at Runtime
14:12
Просмотров 30 тыс.
5 steps to lose belly fat !! 😱😱
00:18
Просмотров 1,6 млн
Passat CC на 300 л.с. Начало проекта!
1:22:50
Making Peace with Double Pointers
4:32
Просмотров 63 тыс.
LLVM in 100 Seconds
2:36
Просмотров 822 тыс.
How to Intercept and Modify Library Calls with Shims.
10:14
Find bugs faster using assertions.
5:23
Просмотров 17 тыс.
Optimising Code - Computerphile
19:43
Просмотров 139 тыс.
How do I access a single bit?
11:07
Просмотров 18 тыс.
5 steps to lose belly fat !! 😱😱
00:18
Просмотров 1,6 млн