[video member=miotatsu stream_platform=twitch project=riscy title="Studying GAS .weak, .section, and .align" vod_platform=youtube id=3y3ibs6GYCo annotator=Miblo] [0:06][Recap and set the stage for the day] [0:44][Equate the :asm in entry.S to array accessing in C][:language] [3:08][Determine to learn if STORE and LOAD are macros] [5:49][Consult the reply to our question in the Big RISCY BUSINESS Question Thread[ref site="SiFive Forums" page="The Big RISCY BUSINESS Question Thread" url=https://forums.sifive.com/t/the-big-riscy-business-question-thread/531/4]] [9:55][Layout the desktop with a few words on the setup][:admin] [12:44][Plug the RISC-V webinar[ref site="SiFive" page="Getting started with SiFive IP" url=https://info.sifive.com/risc-v-webinar] and slides from the presentation[ref site="SiFive" page="RISC-V Core IP Products" url=https://cdn2.hubspot.net/hubfs/3020607/SiFive-RISCVCoreIP.pdf?t=1510672438955]] [16:55][Mention the RISC-V's I-Cache Re-Configurability[ref site="SiFive" page="RISC-V Core IP Products" url=https://cdn2.hubspot.net/hubfs/3020607/SiFive-RISCVCoreIP.pdf?t=1510672438955]] [27:33][Learn about weak symbol[ref site=Wikipedia page="Weak symbol" url=https://en.wikipedia.org/wiki/Weak_symbol] and nm[ref site=Wikipedia page="nm (Unix)" url=https://en.wikipedia.org/wiki/Nm_(Unix)]][:language :research] [38:38][Exercise: Use nm to see if / how using #pragma weak in C code changes the compiler's output] [40:34][Learn use cases of weak symbol[ref site=Wikipedia page="Weak symbol" url=https://en.wikipedia.org/wiki/Weak_symbol]][:language :research] [46:47][Learn limitations of the weak symbol[ref site=Wikipedia page="Weak symbol" url=https://en.wikipedia.org/wiki/Weak_symbol]][:language :research] [54:56][Consult GNU Binutils on .weak[ref site="GNU Binutils" page="7.101 .weak names" url=https://sourceware.org/binutils/docs-2.28/as/Weak.html]] [57:47][Learn about .section[ref site="GNU Binutils" page="7.78 .section name" url=https://sourceware.org/binutils/docs-2.28/as/Section.html] with a few words on a.out[ref site=Wikipedia page=a.out url=https://en.wikipedia.org/wiki/a.out]][:research] [1:09:16][@thyber18][Hey @miotatsu! What are you working on today?] [1:10:19][Continue learning about .section flags and the optional type argument[ref site="GNU Binutils" page="7.78 .section name" url=https://sourceware.org/binutils/docs-2.28/as/Section.html]][:research] [1:17:13][Learn about .align[ref site="GNU Binutils" page="7.3 .align abs-expr, abs-expr, abs-expr" url=https://sourceware.org/binutils/docs-2.28/as/Align.html#Align] with the determination to ask in the forums how the alignment is specified on RISC-V][:research] [1:24:42][Call it an episode for today with a shout-out to @DannyFritz for the support] [/video]