瀏覽代碼

+ added comment, documenting the purpose of the STACK_POINTER_SYM constant

git-svn-id: branches/wasm@47252 -
nickysn 4 年之前
父節點
當前提交
762fdf593e
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      compiler/wasm32/cpubase.pas

+ 6 - 0
compiler/wasm32/cpubase.pas

@@ -273,6 +273,12 @@ uses
       maxfpuregs = 0;
       FRAME_POINTER_SYM = '$fp';
       BASE_POINTER_SYM = '$bp';
+
+      { Global variable, that acts as the stack pointer in linear memory
+        (also called the "linear stack"). This stack is used for address-taken
+        local variables. This separate stack is needed, because the WASM
+        implementation's runtime call stack (which includes return addresses and
+        function parameters) is not visible in linear memory. }
       STACK_POINTER_SYM = '__stack_pointer';
 
 {*****************************************************************************