top of page

HOW TO SPEED UP A PROGRAM

During one of our lectures we discussed about how one would go about to speed up a program. Here are a few details regarding the topic.

----------------


1. Compiler flags are a great way to try and optimize a program due to their ease and portability.

2. selecting an algorithm to help optimize the code, but the drawback is that it can depend on some architecture for:

- data sizes

- how to arrange in memory

- how accurate are we going to be



3. Using Assembler to optimize code is also an option, however assembler is Not portable at all



Things to consider when looking at a program:

- How is memory laid out

- Timing issues when using multiple threads, causing read and write issues.


1 view0 comments

Recent Posts

See All

Closing Thoughts

For my final blog post I would like to discuss what I have learned and plan to utilize in the future from this course. So although I was not able to successfully improve my package to operate function

Stage 3 Optimization(COMPUTER ARCHITECTURE ENDIANESS)

Seeing as how the compiler flags did not provide any optimization I will on to my next attempt which is converting big endian to small endian. The aarch64 architecture uses the little endian byte orde

Stage 3 Optimization(Compiler Flags)

My first attempt to optimize the project will be to work with the compiler flag options. By default the compiler is set to compile in this manner "gcc -E -g -o2" The -E option represents preprocesses

bottom of page