mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
This commit is contained in:
50
index.html
50
index.html
@@ -1325,7 +1325,15 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
||||
<li><a href="#interpreted-languages">21.6. Interpreted languages</a>
|
||||
<ul class="sectlevel3">
|
||||
<li><a href="#python">21.6.1. Python</a></li>
|
||||
<li><a href="#node-js">21.6.2. Node.js</a></li>
|
||||
<li><a href="#node-js">21.6.2. Node.js</a>
|
||||
<ul class="sectlevel4">
|
||||
<li><a href="#npm">21.6.2.1. NPM</a>
|
||||
<ul class="sectlevel5">
|
||||
<li><a href="#npm-data-files">21.6.2.1.1. NPM data-files</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#java">21.6.3. Java</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@@ -21280,7 +21288,7 @@ TimingSimpleCPU::IcachePort::ITickEvent::process()
|
||||
<div class="ulist">
|
||||
<ul>
|
||||
<li>
|
||||
<p><code>curStaticInst→isMemRef()</code> is true, and there is no instruction <code>execute</code> call in that part of the branch, only for instructions that don’t touch memory</p>
|
||||
<p><code>curStaticInst->isMemRef()</code> is true, and there is no instruction <code>execute</code> call in that part of the branch, only for instructions that don’t touch memory</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>_status</code> is <code>BaseSimpleCPU::Status::DcacheWaitResponse</code> and <code>advanceInst</code> is not yet called</p>
|
||||
@@ -21293,12 +21301,12 @@ TimingSimpleCPU::IcachePort::ITickEvent::process()
|
||||
<div class="ulist">
|
||||
<ul>
|
||||
<li>
|
||||
<p><code>curStaticInst→initiateAcc</code> sets up some memory request events</p>
|
||||
<p><code>curStaticInst->initiateAcc</code> sets up some memory request events</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>which likely lead up to: <code>TimingSimpleCPU::completeDataAccess</code>, which off the bat ends in <code>advanceInst</code>.</p>
|
||||
<div class="paragraph">
|
||||
<p>It also calls <code>curStaticInst→completeAcc</code>, which pairs up with the <code>initiateAcc</code> call.</p>
|
||||
<p>It also calls <code>curStaticInst->completeAcc</code>, which pairs up with the <code>initiateAcc</code> call.</p>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -23509,7 +23517,10 @@ There are no non-locking atomic types or atomic primitives in POSIX: <a href="ht
|
||||
<div class="sect3">
|
||||
<h4 id="node-js"><a class="anchor" href="#node-js"></a><a class="link" href="#node-js">21.6.2. Node.js</a></h4>
|
||||
<div class="paragraph">
|
||||
<p>Build and install the interpreter with:</p>
|
||||
<p>Host installation shown at: <a href="https://askubuntu.com/questions/594656/how-to-install-the-latest-versions-of-nodejs-and-npm/971612#971612" class="bare">https://askubuntu.com/questions/594656/how-to-install-the-latest-versions-of-nodejs-and-npm/971612#971612</a></p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>Build and install the interpreter in Buildroot with:</p>
|
||||
</div>
|
||||
<div class="literalblock">
|
||||
<div class="content">
|
||||
@@ -23570,6 +23581,35 @@ There are no non-locking atomic types or atomic primitives in POSIX: <a href="ht
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sect4">
|
||||
<h5 id="npm"><a class="anchor" href="#npm"></a><a class="link" href="#npm">21.6.2.1. NPM</a></h5>
|
||||
<div class="paragraph">
|
||||
<p><a href="https://en.wikipedia.org/wiki/Npm_(software" class="bare">https://en.wikipedia.org/wiki/Npm_(software</a>)</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>Some sample packages can be found under: <a href="https://github.com/cirosantilli/linux-kernel-module-cheat/blob/master/npm">npm</a>.</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>Local testing of those packages can be done as shown at: <a href="https://stackoverflow.com/questions/59389027/how-to-interactively-test-the-executable-of-an-npm-node-js-package-during-develo" class="bare">https://stackoverflow.com/questions/59389027/how-to-interactively-test-the-executable-of-an-npm-node-js-package-during-develo</a></p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>The packages will also be published to the NPM registry, so you can also play with them as:</p>
|
||||
</div>
|
||||
<div class="literalblock">
|
||||
<div class="content">
|
||||
<pre>npm install cirosantilli-<directory-name></pre>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect5">
|
||||
<h6 id="npm-data-files"><a class="anchor" href="#npm-data-files"></a><a class="link" href="#npm-data-files">21.6.2.1.1. NPM data-files</a></h6>
|
||||
<div class="paragraph">
|
||||
<p>Illustrates how to add extra non-code data files to an NPM package, and then use those files at runtime:</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p><a href="https://stackoverflow.com/questions/10111163/in-node-js-how-can-i-get-the-path-of-a-module-i-have-loaded-via-require-that-is" class="bare">https://stackoverflow.com/questions/10111163/in-node-js-how-can-i-get-the-path-of-a-module-i-have-loaded-via-require-that-is</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<h4 id="java"><a class="anchor" href="#java"></a><a class="link" href="#java">21.6.3. Java</a></h4>
|
||||
|
||||
Reference in New Issue
Block a user