riscv asm compare viewer
riscv asm compare viewer 既然能輸出svg向量檔,那麼對比當中的html是否有更方便的方式呢,來寫個html,主要對照vscode可以實現拖拉載入svg圖檔,以及卷軸同步功能,以便找出asm的不同. html Copy <!DOCTYPE html> < html lang = "en" > < head > < meta charset = "UTF-…
ALL POSTS
riscv asm compare viewer 既然能輸出svg向量檔,那麼對比當中的html是否有更方便的方式呢,來寫個html,主要對照vscode可以實現拖拉載入svg圖檔,以及卷軸同步功能,以便找出asm的不同. html Copy <!DOCTYPE html> < html lang = "en" > < head > < meta charset = "UTF-…
Compare compiler versions python Copy """ Module containing main building blocks to parse assembly and draw CFGs. """ # from goto import with_goto import itertools from goto import with_goto…
walk asm call graph 改動後的asm2cfg大概可以直接接受objdump 直接輸出相對應的call graph 新增了svg的向量圖,增加了顏色判斷與no jump 和 jump 的顏色標記,增加了模糊搜尋走訪dfs 改動最多的地方還是能夠呈現asm 的 source code的部分,原理大概就是把comment當作inst,並給予address bash…
riscv-probe code Copy extern char _rodata_end; extern char _data_start; extern char _bss_end; #define KB (0x1 << 10) static uintptr_t uart_keys[] = { SIFIVE_UART0_CTRL_ADDR,…
rsicv asm2cfg 最近在研究disassembly 再找有沒有實際可以把asm轉成cfg的tool https://github.com/Kazhuu/asm2cfg 找到是找到了但是只支援single function 和x86 和 arm 唯一比較有印象的是以前的ida pro 今天下午有空來幫改一下, 在Development 他也有說到可以新建環境 https…
紀錄一下要切換特權模式要經過哪些步驟 https://ithelp.ithome.com.tw/articles/10301462 https://ithelp.ithome.com.tw/articles/10302200 http://rcore-os.cn/rCore-Tutorial-deploy/docs/lab-1/guide/part-2.html https:/…
wasm 如何互動 https://github.com/x213212/wasm_riscv_emu 五年前wasm files系統很不友善只有編譯過,硬改後也沒什結果,這次再結合online ide一下打算做一個類似debug的工具,今天就先把檔案系統給搞定. https://openhome.cc/Gossip/WebAssembly/C2Wasm.html https:…
https://segmentfault.com/a/1190000040712964 https://medium.com/better-programming/create-a-custom-web-editor-using-typescript-react-antlr-and-monaco-editor-bcfc7554e446 antlr4 https://github…
antlr4ts https://progate.com/docs/nodejs-new-application https://github.com/Crtrpt/ts_calculator https://github.com/tunnelvisionlabs/antlr4ts Getting started Install antlr4ts as a runtime de…
mini-riscv-os vga Conway's Game of Life 前面作者實現了碎形圖 https://zh.wikipedia.org/wiki/%E5%88%86%E5%BD%A2 那我們就來在上面實現一個生命遊戲 https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life https://github.com/…
mini-riscv-os vga https://gist.github.com/iamgreaser/15a0a81cd117d4efd1c47ce598c13c91 https://github.com/cccriscv/mini-riscv-os/tree/master/03-MultiTasking 找到一個riscv 的vga 驅動 記得bios 改為 no bio…
https://github.com/x213212/LLD_gbemu_wasm/ enable SharedArrayBuffer enable pthread c Copy #include "../include/common.h" #ifdef __EMSCRIPTEN__ #include <emscripten.h> #endif // TODO Add Wind…
run gb_emu in webasm https://web.dev/drawing-to-canvas-in-emscripten/ 有了前面這個構想,現在的webasm不像2018那麼舊了,剛剛看了怎麼console 部分上面還有一塊區域,原來wasm 也整合了sdl2,剛好我們的gb_emu 也是用sdl2引擎那麼我們能不能直接移植上去呢我們來看一下。 cpp Cop…
run riscv_emulator in webassembly 之前看到gameboy 模擬器run在 瀏覽器上蠻新奇的,之前有寫過重新編譯ffmpeg 到 網頁這次也來編譯一下 https://developer.mozilla.org/en-US/docs/WebAssembly/C_to_wasm 這邊有簡單起始 install emcc bash Copy git…
https://michaeljclark.github.io/isa.html https://github.com/x213212/riscv_emulator riscv_emulator 研讀一下riscv 架構的指令,找了一個模擬器來看實際要執行risc v指令內部會經過哪一些細節 create riscv 架構的 binary code Copy test.bin…
rust-riscv-os c to rust virtio-drivers lib callback success 昨天有說到是否有可能rust 去 call c 或者 c 去call rust,假設其中一項成立都有利於更加快速的開發我們的系統,我們就可以把一些寫好的c 給 rust 用,rust有寫的 c直接呼叫,看了太多程式碼都沒有看到具體實現的過程有沒有可能來實驗一下…
rust-riscv-os c to rust virtio-drivers lib callback https://learningos.github.io/rust-based-os-comp2022/chapter8/index.html https://zhuanlan.zhihu.com/p/344819263 https://avacariu.me/writing…