top of page

Weekly Reflection 3

This week January 27 - January 31, we were still discussing the progress of the results of our Lab 3 ( https://wiki.cdot.senecacollege.ca/wiki/6502_Assembly_Language_Math_Lab ). We gather as a team and discuss the findings and problems that we have with our Bouncing Graphic, the problem is still that we cannot make the Graphic bounce off the corner once it hits. Instead, it just goes through it and then the corner of the graphic mess up. The results that we have so far can be found it the blog with the Lab tags.


In class, we had a discussion about the GCC compiler, we explore the different features that this compiler has and how to work with it. Also, we go deeper with the 5 steps that the compiler have:

  1. Preprocessing

  2. Compilation

  3. Optimization

  4. Assembly

  5. Linking

As well as the feature flags that the GCC compiler has such as:

  • -fbuiltin "enables the builtin feature"

  • -fno-builtin "disables the builtin feature"

  • -O0 "disables most optimizations"

  • -O1 "enables basic optimizations that can be performed quickly"

  • -O2 "enables almost all safe optimizations"

  • -O3 "enables aggressive optimization"

  • -Os "optimizes for small binary and runtime size"

  • -Ofast "optimizes for fast execution"

  • -Og "optimizes for debugging"

To learn more about what the different flags do at each level we can use a GCC command -> gcc -Q --help=optimizers -Olevel . Ex : gcc -Q --help=optimizers -O2. For more detail information (https://wiki.cdot.senecacollege.ca/wiki/Winter_2020_SPO600_Weekly_Schedule#Week_4_-_Class_II)


In addition, we discuss the "Make and Makefiles" how this can help us save time for compiling code. Running a make command we can create a makefile script in the current directory. For more information about this command, we can check this website (https://wiki.cdot.senecacollege.ca/wiki/Make_and_Makefiles).


So far this week we had an interesting topic about the assembly language and the optimization part. Really looking forward to the next lab to put in practice this week's lecture.

Recent Posts

See All

Weekly Reflection 11

This week's online lecture we discuss Profiling and the different commands(gprof or perf) and approaches that we can take. Also, we had...

Weekly Reflection 10

This week we started our Online class because of the current situation with COVID19. We did a recap of what we were doing before the...

Weekly Reflection 9

We were recommended to stay home due to the recent news about COVID-19. Since I am home, I am doing some research about my project and...

Comments


Drop Me a Line, Let Me Know What You Think

Thanks for submitting!

© 2023 by Train of Thoughts. Proudly created with Wix.com

bottom of page