Difference between revisions of "SPO600 Inline Assembler Lab"

From CDOT Wiki
Jump to: navigation, search
(Part B - Individual Task)
Line 2: Line 2:
 
{{Admon/lab|Purpose of this Lab|This lab is designed to explore the use of inline assembler, and its use in open source software.}}
 
{{Admon/lab|Purpose of this Lab|This lab is designed to explore the use of inline assembler, and its use in open source software.}}
  
== Lab 7 ==
+
== Lab 6 ==
  
 
=== References ===
 
=== References ===
Line 14: Line 14:
 
=== Part A - Class Lab ===
 
=== Part A - Class Lab ===
  
1. Here is a version of the volume scaling problem from the [[SPO600 Algorithm Selection Lab|Algorithm Selection Lab]] for AArch64: [http://matrix.senecacollege.ca/~chris.tyler/spo600/spo600_20173_inline_assembler_lab.tgz spo600_20173_inline_assembler_lab.tgz]. Download, build, and verify the operation of this program on AArchie.
+
1. There is a version of the volume scaling problem from the [[SPO600 Algorithm Selection Lab|Algorithm Selection Lab]] for AArch64 which incorporates inline assembler in <code>/public/spo600-20181-inline-assembler-lab.tgz</code> on each of the AArch64 [[SPO600 Servers]]. Copy, build, and verify the operation of this program on one of those servers.
  
  
Line 24: Line 24:
  
 
4. Blog about your results in detail, including your reflections.
 
4. Blog about your results in detail, including your reflections.
 +
  
 
=== Part B - Individual Task ===
 
=== Part B - Individual Task ===
Line 30: Line 31:
  
 
1. Select one of the following open source packages which is not claimed by another person in the class. Put your name beside it in (parenthesis) to claim it.
 
1. Select one of the following open source packages which is not claimed by another person in the class. Put your name beside it in (parenthesis) to claim it.
* amule (Eric Ferguson)
+
* amule
 
* ardour
 
* ardour
 
* avidemux
 
* avidemux
* blender (Matthew Welke)
+
* blender
 
* bunny
 
* bunny
* busybox (Ronen Agarunov)
+
* busybox
* chicken (Azusa Shimazaki)
+
* chicken
 
* cln
 
* cln
 
* coq
 
* coq
* cxxtools (Lucas Verbeke)
+
* cxxtools
 
* faad2
 
* faad2
 
* fawkes
 
* fawkes
* gauche (M.Saeed Mohiti)
+
* gauche
 
* gmime
 
* gmime
* gnash (Sofia Ngo-Trong)
+
* gnash
 
* gridengine
 
* gridengine
* groonga (Matthew Marangoni)
+
* groonga
 
* hoard
 
* hoard
 
* iaxclient
 
* iaxclient
* k9copy (Jiyoung Bae)
+
* k9copy
* lame.
+
* lame  
 
* libfame
 
* libfame
 
* libgcroots
 
* libgcroots
* libmad (Evgeni Kolev)
+
* libmad
 
* libmlx4
 
* libmlx4
 
* lightsparc
 
* lightsparc
 
* mediatomb
 
* mediatomb
* mjpegtools (Henrique Coelho)
+
* mjpegtools
* mlt (Olga Belavina)
+
* mlt
* mosh (Oleh Hodovaniuk)
+
* mosh
 
* mpich2
 
* mpich2
 
* ocaml-zarith
 
* ocaml-zarith
* openblas (Kelvin Cho)
+
* openblas
 
* opencore-amr
 
* opencore-amr
 
* openser
 
* openser
Line 68: Line 69:
 
* picprog
 
* picprog
 
* qlandkartegt
 
* qlandkartegt
* sooperlooper (Chun Sing Lam)
+
* sooperlooper
 
* traverso
 
* traverso
  
  
2. Find the assembler in that software, and determine:
+
2. Find the assembly-language code in that software, and determine:
 
* How much assembley-language code is present
 
* How much assembley-language code is present
* Which platform(s) it is used on
+
* Is the assembly code in its own file (.s or .S) or inline
 +
* Which platform(s) the assembler is used on
 +
* What happens on other platforms
 
* Why it is there (what it does)
 
* Why it is there (what it does)
* What happens on other platforms
 
 
* Your opinion of the value of the assembler code VS the loss of portability/increase in complexity of the code.
 
* Your opinion of the value of the assembler code VS the loss of portability/increase in complexity of the code.
  
  
 
3. Blog your results in detail.
 
3. Blog your results in detail.

Revision as of 23:13, 19 February 2018

Lab icon.png
Purpose of this Lab
This lab is designed to explore the use of inline assembler, and its use in open source software.

Lab 6

References


Part A - Class Lab

1. There is a version of the volume scaling problem from the Algorithm Selection Lab for AArch64 which incorporates inline assembler in /public/spo600-20181-inline-assembler-lab.tgz on each of the AArch64 SPO600 Servers. Copy, build, and verify the operation of this program on one of those servers.


2. Test the performance of this solution and compare it to your previous solution(s). Adjust the number of samples (in vol.h) to produce a measurable runtime, and adjust your code for comparable test conditions (number of samples, 1 array vs. 2 arrays, and so forth).


3. Find the answers to the questions identified with "Q:" in the comments in the source code.


4. Blog about your results in detail, including your reflections.


Part B - Individual Task

1. Select one of the following open source packages which is not claimed by another person in the class. Put your name beside it in (parenthesis) to claim it.

  • amule
  • ardour
  • avidemux
  • blender
  • bunny
  • busybox
  • chicken
  • cln
  • coq
  • cxxtools
  • faad2
  • fawkes
  • gauche
  • gmime
  • gnash
  • gridengine
  • groonga
  • hoard
  • iaxclient
  • k9copy
  • lame
  • libfame
  • libgcroots
  • libmad
  • libmlx4
  • lightsparc
  • mediatomb
  • mjpegtools
  • mlt
  • mosh
  • mpich2
  • ocaml-zarith
  • openblas
  • opencore-amr
  • openser
  • par2cmdline
  • picprog
  • qlandkartegt
  • sooperlooper
  • traverso


2. Find the assembly-language code in that software, and determine:

  • How much assembley-language code is present
  • Is the assembly code in its own file (.s or .S) or inline
  • Which platform(s) the assembler is used on
  • What happens on other platforms
  • Why it is there (what it does)
  • Your opinion of the value of the assembler code VS the loss of portability/increase in complexity of the code.


3. Blog your results in detail.