diff --git a/miotatsu/riscy/book/coad015.hmml b/miotatsu/riscy/book/coad015.hmml new file mode 100644 index 0000000..8214eca --- /dev/null +++ b/miotatsu/riscy/book/coad015.hmml @@ -0,0 +1,92 @@ +[video member=miotatsu stream_platform=twitch project=book title="C vs. ASM, 2.3" vod_platform=youtube id=El_YbdOi42U annotator=Miblo] +[0:13][Recap and set the stage for the day, with thoughts on comparing the code sizes of various languages][:speech] +[2:58][Perform a more rigorous "Hello, World!" comparison between C and x86 :asm][:language :programming] +[9:57][@supersaiyengunner][Just passing by seeing what’s on and I heard I don’t need sake] +[10:34][Note that start.S will be shared between :asm and C][:language :programming] +[11:02][@supersaiyengunner][Now I’m clueless] +[11:38][@supersaiyengunner][I just found you] +[12:13][Pull up the existing clang invocation for test.c][:programming] +[13:01][@supersaiyengunner][I’m down to learn] +[14:24][Build and consult the objdump for our program][:programming] +[15:54][Create hello.S][:asm :programming] +[17:02][@supersaiyengunner][I must absorb your knowledge so I can become more powerful] +[17:42][Remove excess lines from hello.S][:asm :programming] +[19:15][Compare the lines of code in hello.S and test.c][:language :asm :programming] +[21:50][Chapter 2.3 - Operands of the Computer Hardware[ref + title="Computer Organization and Design RISC-V Edition" + author="David Patterson & John Hennessy" + publisher="Morgan Kaufmann" + isbn=9780128122754 + url=https://www.elsevier.com/books/computer-organization-and-design-risc-v-edition/patterson/978-0-12-812275-4]][:hardware] +[24:41][Sketch out a way to deal with the limited number of :hardware registers, with thoughts on portable software][:programming] +[41:12][Chapter 2.3 continued[ref + title="Computer Organization and Design RISC-V Edition" + author="David Patterson & John Hennessy" + publisher="Morgan Kaufmann" + isbn=9780128122754 + url=https://www.elsevier.com/books/computer-organization-and-design-risc-v-edition/patterson/978-0-12-812275-4]][:hardware] +[44:10][Recall [@cmuratori Casey]'s explanation of how the speed of light can become a bottleneck[ref + site=YouTube + page="Intro to C on Windows - Day 3" + url=https://www.youtube.com/watch?v=T4CjOB0y9nI]][:hardware] +[52:49][Chapter 2.3 continued[ref + title="Computer Organization and Design RISC-V Edition" + author="David Patterson & John Hennessy" + publisher="Morgan Kaufmann" + isbn=9780128122754 + url=https://www.elsevier.com/books/computer-organization-and-design-risc-v-edition/patterson/978-0-12-812275-4]][:hardware] +[55:40][Chapter 2.3 Example 1 - Compiling a C Assignment Using Registers[ref + title="Computer Organization and Design RISC-V Edition" + author="David Patterson & John Hennessy" + publisher="Morgan Kaufmann" + isbn=9780128122754 + url=https://www.elsevier.com/books/computer-organization-and-design-risc-v-edition/patterson/978-0-12-812275-4]][:asm :hardware] +[56:29][Our answer to Chapter 2.1 Example 2][:asm :blackboard :hardware] +[1:00:32][Setup the tablet][:admin] +[1:01:51][Putting variables into RISC-V registers][:blackboard :hardware] +[1:04:03][Compare our answer to Chapter 2.1 Example 1 with the book[ref + title="Computer Organization and Design RISC-V Edition" + author="David Patterson & John Hennessy" + publisher="Morgan Kaufmann" + isbn=9780128122754 + url=https://www.elsevier.com/books/computer-organization-and-design-risc-v-edition/patterson/978-0-12-812275-4]][:asm :hardware] +[1:07:37][Chapter 2.1 continued, :Memory Operands[ref + title="Computer Organization and Design RISC-V Edition" + author="David Patterson & John Hennessy" + publisher="Morgan Kaufmann" + isbn=9780128122754 + url=https://www.elsevier.com/books/computer-organization-and-design-risc-v-edition/patterson/978-0-12-812275-4]][:hardware] +[1:09:51][Figure 2.2 - :Memory addresses and contents of memory at those locations[ref + title="Computer Organization and Design RISC-V Edition" + author="David Patterson & John Hennessy" + publisher="Morgan Kaufmann" + isbn=9780128122754 + url=https://www.elsevier.com/books/computer-organization-and-design-risc-v-edition/patterson/978-0-12-812275-4]][:blackboard :hardware] +[1:15:26][Chapter 2.1 continued[ref + title="Computer Organization and Design RISC-V Edition" + author="David Patterson & John Hennessy" + publisher="Morgan Kaufmann" + isbn=9780128122754 + url=https://www.elsevier.com/books/computer-organization-and-design-risc-v-edition/patterson/978-0-12-812275-4]][:hardware :memory] +[1:16:05][Chapter 2.3 Example 2 - Compiling an Assignment When an Operand Is in :Memory[ref + title="Computer Organization and Design RISC-V Edition" + author="David Patterson & John Hennessy" + publisher="Morgan Kaufmann" + isbn=9780128122754 + url=https://www.elsevier.com/books/computer-organization-and-design-risc-v-edition/patterson/978-0-12-812275-4]][:hardware] +[1:16:51][Compiling g = h + A\[8\];][:asm :blackboard :memory] +[1:24:56][Compare our answer to Chapter 2.1 Example 2 with the book[ref + title="Computer Organization and Design RISC-V Edition" + author="David Patterson & John Hennessy" + publisher="Morgan Kaufmann" + isbn=9780128122754 + url=https://www.elsevier.com/books/computer-organization-and-design-risc-v-edition/patterson/978-0-12-812275-4]][:asm :memory] +[1:25:32][Update our answer to use x22 as the base address][:blackboard :asm :memory] +[1:26:19][Continue to compare our answer to Chapter 2.1 Example 2[ref + title="Computer Organization and Design RISC-V Edition" + author="David Patterson & John Hennessy" + publisher="Morgan Kaufmann" + isbn=9780128122754 + url=https://www.elsevier.com/books/computer-organization-and-design-risc-v-edition/patterson/978-0-12-812275-4]][:asm :memory] +[1:29:42][Leave the rest of Chapter 2.3 for the next day][:speech] +[/video] diff --git a/miotatsu/riscy/book/reader002.hmml b/miotatsu/riscy/book/reader002.hmml index c33d781..0839f99 100644 --- a/miotatsu/riscy/book/reader002.hmml +++ b/miotatsu/riscy/book/reader002.hmml @@ -5,102 +5,102 @@ author="David Patterson and Andrew Waterman" publisher="Strawberry Canyon" isbn=9780999249116 - url=http://www.riscvbook.com/]][:isa :research] + url=http://www.riscvbook.com/]][:isa] [7:25][Figure 1.5 - Relative program sizes for RV32G, ARM-32, x86-32, RV32C and Thumb-2[ref title="RISC-V Reader" author="David Patterson and Andrew Waterman" publisher="Strawberry Canyon" isbn=9780999249116 - url=http://www.riscvbook.com/]][:isa :research] + url=http://www.riscvbook.com/]][:isa] [20:54][Notes in the margin of p.8 - Pipelining and :ISA complexity[ref title="RISC-V Reader" author="David Patterson and Andrew Waterman" publisher="Strawberry Canyon" isbn=9780999249116 - url=http://www.riscvbook.com/]][:research] + url=http://www.riscvbook.com/]] [22:12][Chapter 1.3 continued, Program Size; and Ease of programming, compiling and linking[ref title="RISC-V Reader" author="David Patterson and Andrew Waterman" publisher="Strawberry Canyon" isbn=9780999249116 - url=http://www.riscvbook.com/]][:isa :research] + url=http://www.riscvbook.com/]][:isa] [29:36][Recall @DannyFritz's question as to whether RISC-V instructions always operate in one cycle][:isa :speech] [32:43][Chapter 1.3 continued, Ease of programming, compiling and linking[ref title="RISC-V Reader" author="David Patterson and Andrew Waterman" publisher="Strawberry Canyon" isbn=9780999249116 - url=http://www.riscvbook.com/]][:isa :research] + url=http://www.riscvbook.com/]][:isa] [37:35][Chapter 1.4 - An Overview of this Book[ref title="RISC-V Reader" author="David Patterson and Andrew Waterman" publisher="Strawberry Canyon" isbn=9780999249116 - url=http://www.riscvbook.com/]][:research] + url=http://www.riscvbook.com/]] [39:33][Note that we've seen pseudo-instructions in [~riscy RISCY BUSINESS]][:speech] [40:30][Chapter 1.4 continued[ref title="RISC-V Reader" author="David Patterson and Andrew Waterman" publisher="Strawberry Canyon" isbn=9780999249116 - url=http://www.riscvbook.com/]][:research] + url=http://www.riscvbook.com/]] [42:31][Glimpse into the future of writing an assembler and compiler, with thoughts on undefined behaviour][:language :rant] [55:42][Chapter 1.4 continued[ref title="RISC-V Reader" author="David Patterson and Andrew Waterman" publisher="Strawberry Canyon" isbn=9780999249116 - url=http://www.riscvbook.com/]][:research] + url=http://www.riscvbook.com/]] [57:04][Check if Computer Architecture: a Quantitative Approach[ref title="Computer Architecture: A Quantitative Approach" author="John Hennessy & David Patterson" publisher="Morgan Kaufmann" isbn=9780123838728 - url=https://www.elsevier.com/books/computer-architecture/hennessy/978-0-12-383872-8] contains a green card][:research] + url=https://www.elsevier.com/books/computer-architecture/hennessy/978-0-12-383872-8] contains a green card] [58:43][Chapter 1.4 continued[ref title="RISC-V Reader" author="David Patterson and Andrew Waterman" publisher="Strawberry Canyon" isbn=9780999249116 - url=http://www.riscvbook.com/]][:research] + url=http://www.riscvbook.com/]] [59:34][Recall a conversation with Andrew and Yunsup about vector machines][:speech] [1:01:40][Chapter 1.4 continued[ref title="RISC-V Reader" author="David Patterson and Andrew Waterman" publisher="Strawberry Canyon" isbn=9780999249116 - url=http://www.riscvbook.com/]][:research] + url=http://www.riscvbook.com/]] [1:03:33][Chapter 1.5 - Concluding Remarks[ref title="RISC-V Reader" author="David Patterson and Andrew Waterman" publisher="Strawberry Canyon" isbn=9780999249116 - url=http://www.riscvbook.com/]][:research] + url=http://www.riscvbook.com/]] [1:05:37][Figure 1.6 - Number of pages and words of :ISA manuals[ref title="RISC-V Reader" author="David Patterson and Andrew Waterman" publisher="Strawberry Canyon" isbn=9780999249116 - url=http://www.riscvbook.com/]][:research] + url=http://www.riscvbook.com/]] [1:13:04][Chapter 1.5 continued[ref title="RISC-V Reader" author="David Patterson and Andrew Waterman" publisher="Strawberry Canyon" isbn=9780999249116 - url=http://www.riscvbook.com/]][:research] + url=http://www.riscvbook.com/]] [1:16:35][Thoughts on the monumental task of reading the x86-32 documentation, and Mike Acton's recommendation to do this][:isa :speech] [1:19:12][Chapter 1.5 continued[ref title="RISC-V Reader" author="David Patterson and Andrew Waterman" publisher="Strawberry Canyon" isbn=9780999249116 - url=http://www.riscvbook.com/]][:research] + url=http://www.riscvbook.com/]] [1:25:17][Chapter 1.6 - To Learn More[ref title="RISC-V Reader" author="David Patterson and Andrew Waterman" publisher="Strawberry Canyon" isbn=9780999249116 - url=http://www.riscvbook.com/]][:research] + url=http://www.riscvbook.com/]] [1:30:31][Wind it down][:speech] [1:31:31][Address Patreon's proposed fee changes from Winter 2017, with a plug of the pledge platform poll[ref site=Twitter