TempleOSCD_140715.ISO
This commit is contained in:
1 parent
7ef616a20e
commit
64f679eeb9
1095 files changed
+24814
-221011
No files matched your search
+81
-69
@@ -2,9 +2,7 @@ $FG,5$$TX+CX,"Details of Scoping and Linkages"$$FG$
|
||||
$WW,1$
|
||||
$LK,"JIT Compile Mode",A="FF:::/Doc/Glossary.TXT,JIT Compile Mode"$ makes use of the current task's hash sym table and its parent tasks' tables. It fetches syms from parent tasks' tables if not found locally in the current task's table and it places new syms in the current task's table. Conceptually, syms are at the scope of environment vars in other operating systems.
|
||||
|
||||
$LK,"AOT Compile Mode",A="FF:::/Doc/Glossary.TXT,AOT Compile Mode"$ creates a new, empty, sym table which you must populate by $FG,2$#include$FG$ing $LK,"::/Kernel/AOT.HPP"$ or whatever to import syms.
|
||||
|
||||
When a sym is placed into a table, older syms with identical names will be overshadowed if they exist. Duplicates are not allowed in many cases, especially in asm blks. Dupicates are allowed, by design in other cases, so that you can repeatedly $FG,2$#include$FG$ the same file from the cmd line while developing it. Or, so you can repeatedly declare a function with a standard name, like "$FG,2$UpdateWin()$FG$". This case might occur when the $FG,2$adam task$FG$ is starting-up loading-in many little utilities.
|
||||
When a sym is placed into a table, older syms with identical names will be overshadowed if they exist. Duplicates are not allowed in many cases, especially in asm blks. Dupicates are allowed, by design in other cases, so that you can repeatedly $FG,2$#include$FG$ the same file from the cmd line while developing it. Or, so you can repeatedly declare a function with a standard name, like $FG,2$DrawIt()$FG$. This case might occur when the $FG,2$adam task$FG$ is starting-up loading-in many little utilities.
|
||||
|
||||
$FG,2$extern$FG$ binds a new $LK,"HTT_FUN",A="MN:HTT_FUN"$ or $LK,"HTT_GLBL_VAR",A="MN:HTT_GLBL_VAR"$ sym to an existing sym of the same name if it exists in the sym table (just in just-in-time code). It also can be used to generate a fwd reference.
|
||||
|
||||
@@ -16,73 +14,87 @@ $FG,2$_extern$FG$ binds a new $LK,"HTT_FUN",A="MN:HTT_FUN"$ or $LK,"HTT_GLBL_VAR
|
||||
$FG,2$_import$FG$ binds a new $LK,"HTT_FUN",A="MN:HTT_FUN"$ or $LK,"HTT_GLBL_VAR",A="MN:HTT_GLBL_VAR"$ sym to a sym, of a $BK,1$different$BK,0$ name imported from the task's sym table at $LK,"Load",A="MN:Load"$() time. If no sym exists to bind to at $LK,"Load",A="MN:Load"$() time, the code using this sym will be left incomplete until the sym is defined. Basically, this binds C to asm from elsewhere.
|
||||
|
||||
|
||||
$WW,0$$FG,2$A$FG$headOfTime/$FG,2$J$FG$ustInTime
|
||||
| Code occurs in $FG,2$G$FG$lobalScope/$FG,2$F$FG$unctionScope
|
||||
| | $FG,2$C$FG$Code/$FG,2$A$FG$smCodeBlk
|
||||
| | | $FG,2$extern$FG$/$FG,2$import$FG$/$FG,2$_extern$FG$/$FG,2$_import$FG$/$FG,2$IMPORT$FG$/$FG,2$static$FG$/$FG,2$class$FG$/$FG,2$goto$FG$
|
||||
| | | | $FG,2$C$FG$odeHeap/$FG,2$D$FG$ataHeap/$FG,2$S$FG$tack/$FG,2$R$FG$egister
|
||||
| | | | | TaskHashEntry:Export$FG,2$S$FG$ysSym/$FG,2$M$FG$acro/$FG,2$F$FG$unction/$FG,2$C$FG$lass/$FG,2$T$FG$ypedef
|
||||
| | | | | | UsageScope: $FG,2$M$FG$odule/$FG,2$A$FG$smLocal/Asm$FG,2$B$FG$lk/$FG,2$T$FG$askAndChildren/$FG,2$F$FG$unction
|
||||
| | | | | | |UsageScope: $FG,2$G$FG$lbl/Asm$FG,2$L$FG$ocal/$FG,2$R$FG$emainder/$FG,2$g$FG$lblThisBlkAndRemainder
|
||||
| | | | | | || $FG,2$S$FG$taticVarInit/$FG,2$D$FG$ynamicVarInitAllowed/$FG,2$N$FG$oInitAllowed
|
||||
| | | | | | || | Are dups allowed within the namespace? A dup overshadows the original.
|
||||
| | | | | | || | $FG,2$D$FG$upsAllowed/$FG,2$N$FG$oDups/NoDupsBut$FG,2$P$FG$ad/$FG,2$W$FG$arningUnlessClosedOut
|
||||
A G A C label:: S MG N
|
||||
A G A C label: MG N
|
||||
A G A C @@label: AL N
|
||||
A G A IMPORT C label; MR N
|
||||
A F A C label:: S BG N
|
||||
A F A C label: BG N
|
||||
A F A C @@label: AL N
|
||||
A F A IMPORT C label; BR N
|
||||
A x x #define MR D
|
||||
A G C C function S MR D
|
||||
A F C R var FR N
|
||||
A F C S var FR N
|
||||
A F C static C var FR D N
|
||||
A F C goto C label: FG N
|
||||
A G C C var S MR D D
|
||||
A G C D var MR N D
|
||||
A G C class MR D
|
||||
A G C class member MR P
|
||||
A G C extern class MR D
|
||||
A G C extern C function MR W
|
||||
A G C import C function MR D
|
||||
A G C import C var MR D
|
||||
A G C _extern C function MR D
|
||||
A G C _extern C var MR D
|
||||
A G C _import C function MR D
|
||||
A G C _import C var MR D
|
||||
J G A C label:: S Tg N
|
||||
J G A C label: BG N
|
||||
J G A C @@label: AL N
|
||||
J G A IMPORT C label; TR N
|
||||
J F A C label:: BG N
|
||||
J F A C label: BG N
|
||||
J F A C @@label: AL N
|
||||
J F A IMPORT C label; BR N
|
||||
J x x #define M TR D
|
||||
J G C C function F TR D
|
||||
J F C R var FR N
|
||||
J F C S var FR N
|
||||
J F C static C var FR D N
|
||||
J F C goto C label: FG N
|
||||
J G C C var G TR D D
|
||||
J G C D var G TR S D
|
||||
J G C class C TR D
|
||||
J G C class member TR P
|
||||
J G C extern class C TR D
|
||||
J G C extern C function F TR W
|
||||
J G C extern C var G TR D
|
||||
J G C extern D var G TR D
|
||||
J G C _extern C function F TR D
|
||||
J G C _extern C var G TR D
|
||||
$WW,0$$FG,5$Ahead of Time Compilation$FG$
|
||||
$FG,2$G$FG$lobalScope/$FG,2$F$FG$unctionScope
|
||||
| $FG,2$C$FG$odeHeap/$FG,2$D$FG$ataHeap/$FG,2$S$FG$tack/$FG,2$R$FG$egister
|
||||
| | TaskHashEntry:Export$FG,2$S$FG$ysSym/$FG,2$D$FG$efine/$FG,2$F$FG$unction/$FG,2$C$FG$lass
|
||||
| | | UsageScope: $FG,2$M$FG$odule/$FG,2$A$FG$smLocal/Asm$FG,2$B$FG$lk/$FG,2$T$FG$askAndChildren/$FG,2$F$FG$unction
|
||||
| | | |UsageScope: $FG,2$G$FG$lbl/Asm$FG,2$L$FG$ocal/$FG,2$R$FG$emainder/$FG,2$g$FG$lblThisBlkAndRemainder
|
||||
| | | || $FG,2$S$FG$taticVarInit/$FG,2$D$FG$ynamicVarInitAllowed/$FG,2$N$FG$oInitAllowed
|
||||
| | | || | Are dups allowed within the namespace? A dup overshadows the original.
|
||||
| | | || | $FG,2$D$FG$upsAllowed/$FG,2$N$FG$oDups/NoDupsBut$FG,2$P$FG$ad/$FG,2$W$FG$arningUnlessClosedOut
|
||||
|
||||
asm export $FG,2$label::$FG$ G C S MG N
|
||||
asm $FG,2$label:$FG$ G C MG N
|
||||
asm local $FG,2$@@label:$FG$ G C AL N
|
||||
asm $FG,2$IMPORT label;$FG$ G C MR N
|
||||
asm export $FG,2$label::$FG$ F C S BG N
|
||||
asm $FG,2$label:$FG$ F C BG N
|
||||
asm local $FG,2$@@label:$FG$ F C AL N
|
||||
asm $FG,2$IMPORT label;$FG$ F C BR N
|
||||
C goto $FG,2$label:$FG$ F C FG N
|
||||
|
||||
$FG,2$#define$FG$ x MR D
|
||||
function G C S MR D
|
||||
var F R FR N
|
||||
var F S FR N
|
||||
$FG,2$static$FG$ var F C FR D N
|
||||
var G C S MR D D
|
||||
var G D MR N D
|
||||
$FG,2$class$FG$ G MR D
|
||||
class member G MR P
|
||||
$FG,2$extern class$FG$ G MR D
|
||||
$FG,2$extern$FG$ function G C MR W
|
||||
$FG,2$import$FG$ function G C MR D
|
||||
$FG,2$import$FG$ var G C MR D
|
||||
$FG,2$_extern$FG$ function G C MR D
|
||||
$FG,2$_extern$FG$ var G C MR D
|
||||
$FG,2$_import$FG$ function G C MR D
|
||||
$FG,2$_import$FG$ var G C MR D
|
||||
|
||||
|
||||
$FG,5$Just in Time Compilation$FG$
|
||||
$FG,2$G$FG$lobalScope/$FG,2$F$FG$unctionScope
|
||||
| $FG,2$C$FG$odeHeap/$FG,2$D$FG$ataHeap/$FG,2$S$FG$tack/$FG,2$R$FG$egister
|
||||
| | TaskHashEntry:Export$FG,2$S$FG$ysSym/$FG,2$D$FG$efine/$FG,2$F$FG$unction/$FG,2$C$FG$lass
|
||||
| | | UsageScope: $FG,2$M$FG$odule/$FG,2$A$FG$smLocal/Asm$FG,2$B$FG$lk/$FG,2$T$FG$askAndChildren/$FG,2$F$FG$unction
|
||||
| | | |UsageScope: $FG,2$G$FG$lbl/Asm$FG,2$L$FG$ocal/$FG,2$R$FG$emainder/$FG,2$g$FG$lblThisBlkAndRemainder
|
||||
| | | || $FG,2$S$FG$taticVarInit/$FG,2$D$FG$ynamicVarInitAllowed/$FG,2$N$FG$oInitAllowed
|
||||
| | | || | Are dups allowed within the namespace? A dup overshadows the original.
|
||||
| | | || | $FG,2$D$FG$upsAllowed/$FG,2$N$FG$oDups/NoDupsBut$FG,2$P$FG$ad/$FG,2$W$FG$arningUnlessClosedOut
|
||||
|
||||
asm export $FG,2$label::$FG$ G C S Tg N
|
||||
asm $FG,2$label:$FG$ G C BG N
|
||||
asm local $FG,2$@@label:$FG$ G C AL N
|
||||
asm $FG,2$IMPORT label;$FG$ G C TR N
|
||||
asm export $FG,2$label::$FG$ F C BG N
|
||||
asm $FG,2$label:$FG$ F C BG N
|
||||
asm local $FG,2$@@label:$FG$ F C AL N
|
||||
asm $FG,2$IMPORT label;$FG$ F C BR N
|
||||
C goto $FG,2$label:$FG$ F C FG N
|
||||
|
||||
$FG,2$#define$FG$ x D TR D
|
||||
function G C F TR D
|
||||
var F R FR N
|
||||
var F S FR N
|
||||
$FG,2$static$FG$ var F C FR D N
|
||||
var G C G TR D D
|
||||
var G D G TR S D
|
||||
$FG,2$class$FG$ G C TR D
|
||||
class member G TR P
|
||||
$FG,2$extern class$FG$ G C TR D
|
||||
$FG,2$extern$FG$ function G C F TR W
|
||||
$FG,2$extern$FG$ var G C G TR D
|
||||
$FG,2$extern$FG$ var G D G TR D
|
||||
$FG,2$_extern$FG$ function G C F TR D
|
||||
$FG,2$_extern$FG$ var G C G TR D
|
||||
|
||||
$WW,1$
|
||||
* GoTo labels must not have the same name as global scope objects. GoTo's are rare and I don't want to slow the compiler and add code to fix this. You will get errors if a collision happens, so it's not very dangerous, but the error message is baffling.
|
||||
* Goto labels must not have the same name as global scope objects. GoTo's are rare and I don't want to slow the compiler and add code to fix this. You will get errors if a collision happens, so it's not very dangerous, but the error message is baffling.
|
||||
|
||||
* The member names "$FG,2$pad$FG$ and "$FG,2$reserved$FG$" are special because multiple instances with the same name are allowed in a class.
|
||||
* The member names $FG,2$pad$FG$ and $FG,2$reserved$FG$ are special because multiple instances with the same name are allowed in a class.
|
||||
|
||||
* Use $FG,2$reg$FG$ or $FG,2$noreg$FG$ in front of local var names to override automatic reg var allocation. You can, optionally, specify a reg after the "$FG,2$reg$FG$" keyword.
|
||||
* Use $FG,2$reg$FG$ or $FG,2$noreg$FG$ in front of local var names to override automatic reg var allocation. You can, optionally, specify a reg after the $FG,2$reg$FG$ keyword.
|
||||
|
||||
* Local non-reg function vars can be accessed in asm blks with $FG,2$&i[RBP]$FG$ for example.
|
||||
|
||||
@@ -97,9 +109,9 @@ $WW,1$
|
||||
|
||||
* The $FG,2$sizeof()$FG$ and HolyC structure members can be used in asm blks.
|
||||
|
||||
* No reg vars are used in functions with a try/catch. They will be force to $FG,2$noreg$FG$.
|
||||
* Using $FG,2$&i$FG$ in $LK,"HolyC",A="FI:::/Doc/HolyC.TXT"$ or $FG,2$i.u8[2]$FG$ on a local var, $FG,2$i$FG$, will force it to $FG,2$noreg$FG$.
|
||||
|
||||
* Using $FG,2$&i$FG$ or $FG,2$i.u8[2]$FG$ on a local var, $FG,2$i$FG$, will force it to $FG,2$noreg$FG$.
|
||||
* Using $FG,2$try$FG$/$FG,2$catch$FG$ in a function will force all local vars to $FG,2$noreg$FG$.
|
||||
|
||||
* An unused gap on the stk is left for $FG,2$reg$FG$ vars.
|
||||
|
||||
|
||||
Reference in new issue
Block a user