訂閱:
文章 (Atom)
-
Photo by Pavan Trikutam on Unsplash Introduction The calling convention is a specification which describes how parameters are passed to a f...
-
Photo by Quino Al on Unsplash 前言 所謂的呼叫慣例是指一個規範,這個規範描述了函式的參數如何傳遞、返回值式怎麼返回等等的議題。不同的處理器架構通常會有不同的呼叫慣例。比如: 在 x86 的架構中,函式的參數傳遞會以堆疊來完成。但在 Arm 的架構中...
-
Photo by Markus Spiske on Unsplash 前言 在 前一篇文章 中,我們提到了 LLVM 後端中處理呼叫慣例的兩個關鍵檔案: <Arch>CallingConv.td 與 <Arch>ISelLowering.cpp 。不過在...