吳建興

@fdgkhdkgh

Joined on Mar 2, 2017

  • Build and Install tool chain git clone git@github.com:riscv-collab/riscv-gnu-toolchain.git cd riscv-gnu-toolchain # checkout to a stabler commit git checkout 2024.03.01 # opt/riscv is the install path ./configure --prefix=/opt/riscv
     Like  Bookmark
  • open source project spike-vp Use spike and VCML to build a SystemC virtual platform. https://github.com/TommyWu-fdgkhdkgh/spike-vp glog [Accepted] https://github.com/google/glog/commit/18836106d1fe6893c5cf3db1682b6916fdd4f34c -- this patch make glog 50% faster in specific situaltion -- thank ᴀᴇsᴏᴘʜᴏʀ for advice.
     Like 4 Bookmark
  • contributed by < fdgkhdkgh > 第二週隨堂測驗題 解釋上述程式碼運作原理 /* This returns the same value that is passed as ptr. * Progress condition: wait-free population oblivious. */ uintptr_t list_hp_protect_ptr(list_hp_t *hp, int ihp, uintptr_t ptr) {
     Like  Bookmark
  • contributed by < fdgkhdkgh > 第一週隨堂測驗題 解釋上述程式碼運作原理,包含 ftrace 的使用 在 kernel module 初始化的地方,呼叫 init_hook static int _hideproc_init(void) { .
     Like  Bookmark
  • 測驗 $\gamma\ -\ 1$ 因為 fork 出新的 process 時,會連同 buffered I/O 也一併複製過去。所以總 '-' 數量會是所有 process 數量 * NNN。 在此例題的例子,NNN == 12,總 process 的數量為 4096 ==> 總 '-' 數量 == 49152。 可以用簡易的程式來計算出不同的 NNN 會印出多少的 '-' 以及 fork 出多少個 process。 #include <stdio.h> #include <stdlib.h>
     Like  Bookmark