Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: Threaded code


Related Topics

In the News (Thu 17 Dec 09)

  
  Threaded code - Wikipedia, the free encyclopedia
Threading is a form of code consisting entirely of subroutine calls, written without the subroutine call instruction, and processed by an interpreter (such as the Forth virtual machine), which jumps to each successive subroutine in turn.
Threaded code is used in the Forth and early versions of the B programming languages, as well as many implementations of FORTRAN, BASIC, COBOL and other languages for small minicomputers.
In systems with virtual memory (where memory is simulated with a mechanical disk drive), threaded code may be hundreds of times faster than a less-compact design that does not fit in the available physical memory, because disk drives tend to be roughly a thousand times slower than random-access memory (RAM).
en.wikipedia.org /wiki/Threaded_code   (1304 words)

  
 Threaded Code   (Site not responding. Last check: 2007-10-08)
Threaded code is somewhat in the middle between native machine code and interpreted bytecodes such as the ones used by Squeak.
Threaded code consists of lists of addresses, which are interpreted as entry points for functions which implement the behavior of one or a few bytecodes.
The code used by Ian Piumarta in Squeak 1.31 is Direct Threaded Code which means there is no central dispatcher loop which fetches addresses and calls the appropriate functions, but each function includes the fetch code and jumps directly to the next function.
minnow.cc.gatech.edu /squeak.320   (139 words)

  
 Threaded code -- Facts, Info, and Encyclopedia article   (Site not responding. Last check: 2007-10-08)
In (The branch of engineering science that studies (with the aid of computers) computable processes and structures) computer science, the term threaded code refers to an implementation technique for ((computer science) a language designed for programming computers) programming languages that produces very compact code at the expense of some execution speed.
Threading is a form of code consisting entirely of subroutine calls, written without the subroutine call instruction, and processed by an interpreter (Forth) or the CPU (B), which jumps to each successive piece of basic function code in turn.
Subroutine threaded code, in which the code is actually a list of subroutine calls.
www.absoluteastronomy.com /encyclopedia/t/th/threaded_code.htm   (1231 words)

  
 [No title]   (Site not responding. Last check: 2007-10-08)
Threaded code is somewhat in the middle between native machine code and interpreted bytecodes
This paper introduces the indirect threaded code and compares it with James Bell's direct threaded
code, segment threaded code) with illustrative examples, which are very helpful to understand these
www.ics.uci.edu /~qxie/report/1.html   (157 words)

  
 Expert About th:Threaded
Threaded code is a technique for implementing virtual machine interpreters.
Threaded code, in its original meaning bell73, is one of the techniques for implementing virtual machine interpreters.
Direct threaded code cannot be simply transported from one machine to another, because it contains code addresses, which vary from machine to machine.
expertsite.biz /dir/th/threaded.htm   (1475 words)

  
 [No title]
When the threaded code modules are linked, the task builder, or linker, creates a list of the routine and argument ad- dresses and places the address of this list in R4.
At the end of the routine the address of the next instruction is on the stack for the inline code, and the address of the JMP @(R4)+ command is on the stack for threaded code.
The inline code entry points are generated by the same statements, but the name is slightly different; for the inline entry points, the dollar sign ($) is the first character instead of the last.
www.ibiblio.org /pub/academic/computer-science/history/pdp-11/rt/sigtapes/11sp17/f4ots.doc   (14334 words)

  
 Threaded Code Tcl VM
Threaded Code Tcl VM Threaded Code Tcl VM
Threaded code has been used in Ken Thompson's original B language, and Charles Moore's Forth.
George Peter Staplin: Jan 30, 2005 - I've examined several implementations of high performance threaded code that are mainly written in C. Some rely on allocating a global register as a virtual instruction pointer (which may not always work with every library, unless the libraries are compiled for this, and the compiler supports this).
wiki.tcl.tk /13447   (640 words)

  
 threaded code Computer Encyclopedia Enterprise Resource Directory Complete Guide to Internet   (Site not responding. Last check: 2007-10-08)
A technique for implementing {virtual machine} {interpreters}, introduced by J.R. Bell in 1973, where each {op-code} in the virtual machine {instruction set} is the address of some (lower level) code to perform the required operation.
This kind of virtual machine can be implemented efficiently in {machine code} on most processors by simply performing an {indirect jump} to the address which is the next instruction.
Many {Forth} implementations use threaded code and nowadays some use the term "threading" for almost any technique used to implement Forth's virtual machine.
jaysir.com /computer-encyclopedia/t/threaded-code-computer-terms.htm   (133 words)

  
 Using Visual J++ -- Chapter 16
For example, if a thread updates a variable that another thread prints, you need to determine which thread is critical and synchronize that thread's code so that certain statements execute by themselves without two or more threads running the code at the same time.
In other words, two or more threads might be able to execute the same code, as is often the case, but you want to ensure that the code executes by one thread only at any one time.
Threaded programming is a new concept for most programmers, even the programmers who have programmed for years in other languages.
medialab.di.unipi.it /web/doc/VisualJ++/uvj16fi.htm   (3672 words)

  
 Interpretation Techniques   (Site not responding. Last check: 2007-10-08)
Both threaded code techniques are much faster than a traditional interpreter that uses opcode tables.
Cint [18], a C language interpreter, shuns threaded code techniques, claiming they are machine dependent.
To avoid the machine dependency problem, Ertl [31] uses a feature of GNU gcc [90] to generate a threaded code interpreter from a C language source.
www.cs.unm.edu /~riesen/prop/node37.html   (510 words)

  
 [No title]   (Site not responding. Last check: 2007-10-08)
Mixed, if is both code and data: it gets processed in both ways (it may be self-modifying code or code considered as data).
Description of the 3rd order threaded code, which is found useful when the potentialities of classical backtracking are exhausted, remains beyond the scope of this work as well.
The concept of position (active, passive, etc.) is introduced that represents the differences between code, data, self-modifying code, etc. A notation has been developed that adequately describes processing of [threaded] code by the code interpreter and effect of return address manipulations on it.
www.forth.org.ru /~mlg/ef96/ef96-1-paper.txt   (5179 words)

  
 N-Body Particle Simulation - Naive Threaded Code   (Site not responding. Last check: 2007-10-08)
In addition to power of 2 thread counts, 25 and 50 were used since those counts evenly divide most of the particles counts.
When a thread is waiting on memory it can be swapped out for another process that’s memory request is ready in the cache.
This is due to overhead to synchronize the threads and more time is wasted waiting (more threads are waiting) for the last thread to enter the barrier.
www.cs.berkeley.edu /~huebsch/cs267/particle/naivethread.html   (528 words)

  
 Threaded Code
Let's look at a piece of straight-line code consisting of the virtual machine instructions A, B and C. We could write machine-level subroutines Ar, Br and Cr for performing the action of the virtual machine instructions.
This is known as subroutine-threaded code, although it is not threaded code in the original sense; in fact, subroutine threading is not even an interpretive technique.
The code consists of a sequence of segments instead of a sequence of code addresses.
www.complang.tuwien.ac.at /forth/threaded-code.html   (1556 words)

  
 [No title]   (Site not responding. Last check: 2007-10-08)
A sequence of TCEs, typically is processed by the threaded code interpreter.
Mixed, or blended, if is both code and data: it gets processed in both ways (it may be self-modifying code or code considered as data).
The formalism can distinguish between code and data elements in threaded code, and may be based on either formal or intuitive knowledge about stack effects.
www.forth.org.ru /~mlg/ef95/ef95-2-talk.txt   (1155 words)

  
 Etnus - TotalView - Threads   (Site not responding. Last check: 2007-10-08)
The Root Window displays all threads in relation to the parent process in a hierarchical manner, so that all threads that comprise a process are grouped together.
The Thread Tab displays threads in context of the process that currently is executing in the Process Window.
Threading models vary greatly from one operating system to the next and so do options for thread debugging.
www.etnus.com /TotalView/Threads.html   (696 words)

  
 Gforth Manual
In normal direct threaded code there is a code address occupying one cell for each of these primitives.
Each code address points to a machine code routine, and the interpreter jumps to this machine code in order to execute the primitive.
With dynamic superinstructions and replication the compiler does not just lay down the threaded code, but also copies the machine code fragments, usually without the jump at the end.
www.complang.tuwien.ac.at /forth/gforth/Docs-html/Dynamic-Superinstructions.html   (414 words)

  
 Free-Threaded In-Progress Indicators
Basically what it means is that apart from stopping the thread there is a one shot chance of communicating information from the owner to the thread.
However, to make the threading code work correctly this object must be accessible to the CoCreateInstance call, which requires that the object is entered in the registry and is therefore public.
Because the thread object is exposed publically, it is possible to try out the methods by creating an instance of the thread object in a design object.
www.vbaccelerator.com /codelib/thread/inprog.htm   (921 words)

  
 FIG-FORTH Internals
The directed-threaded code section is tangential as it wasn't originally implemented in FIG-FORTH.
A machine code routine named NEXT is the part of the inner interpreter that executes the next FORTH word.
Code words are directly executed by the host processor.
www.jimbrooks.org /web/forth/forthInternals.php   (2448 words)

  
 RHiTech Co. Code Testing Tool documentation.   (Site not responding. Last check: 2007-10-08)
This tool is a convenient wrapper for your testing code and test cases.
The Code Testing Tool architecture is based on the COM - technology, this gives a possibility of realizing your component CTest with all of your test-cases in any development environments (Microsoft Visual C++, Microsoft Visual Basic, Borland C++ Builder, Borland Delphi) and using it in the Code Testing Tool.
For example, this kind of testing can be used for errors detection of data recording out off a buffer, and in this case a program work becomes unpredictable and error does not appear at once and for its detection it is necessary to execute a sequential tests series.
rhitech.com /Products/TestsEmulator/document.htm   (1407 words)

  
 [Beowulf] Threaded code
However, in C using threads is simply a matter of linking in the correct thread library: LIBS = -lpthread -lmenu -lpanel -lcurses -lxml2 -lm (from a threaded app I wrote).
Ditto in perl (which currently supports threads, amazingly enough, in scripted code).
I'd guess that it is much the same for fortran, with the usual caveat about c-style subroutine calls and argument lists vs fortran-style calls and argument lists.
www.scyld.com /pipermail/beowulf/2004-August/010511.html   (581 words)

  
 threaded code categories   (Site not responding. Last check: 2007-10-08)
code or a call to a routine (docolon) to process the threaded list.
Native Code, STC and native code inlining may be combined
Threaded and Native Code was about 4 to 1.
forth.sourceforge.net /about/threaded   (395 words)

  
 Accessing Nanosecond Timers While Performance Tuning on Windows Servers
This differs from single-threaded code (where performance benefits can generally be predicted accurately by reducing instruction counts and known high-latency activities), because thread scheduling is inherently non-deterministic on Windows platforms.
When the code is executed the first time, it's likely to need to be brought into cache as will be the data it works on.
However, once the code and data are in cache (the result of running the code several times), then the cache loading distortion is removed.
devx.com /SummitDays/Article/16293/1411/pdo/...   (1453 words)

  
 4.3.2 Starting the code
First the code must be compiled with appropriate multi-threading directives active in the file main.F and with appropriate compiler flags to request multi-threading support.
This is necessary for local variables to ensure that they are private to their thread.
In order to run code in a multi-process configuration a decomposition specification (see section 4.3.1) is given (in which the at least one of the parameters nPx or nPy will be greater than one) and then, as for multi-threaded operation, appropriate compile time and run time steps must be taken.
mitgcm.org /~adcroft/manual/node156.html   (1400 words)

  
 The Heart of Forth
Direct threaded code is usually faster than indirect threaded, except on chips such as the Pentium, which dislike mixing code and data.
Strictly speaking, native code Forths do not have an inner interpreter; it is all machine code, and NEXT is superfluous to requirements.
Although colon definitions have no code and data field, the terms do make sense for other "secondary" words, so EXECUTE and DATA are the same as for the CALL version of direct threaded code.
www.figuk.plus.com /build/heart.htm   (2268 words)

  
 MTThreadedComments
In order for threaded comments to appear nested in your comment listing, you will need to add a nested command style to tell your browser how to display nested comments.
Comments are threaded in a tree structure; the children of a comment are those comments that are direct replies to it (replies to replies are not children, but children of children).
Subjects and threading information is not exported by the Movable Type export functionality.
akosut.com /software/mtthreadedcomments.html   (1401 words)

  
 Threaded Code Variations and Optimizations (Extended Version) (ResearchIndex)   (Site not responding. Last check: 2007-10-08)
Abstract: Forth has been traditionally implemented as indirect threaded code, where the code for non-primitives is the code-field address of the word.
To get the maximum benefit from combining sequences of primitives into superinstructions, the code produced for a non-primitive should be a primitive followed by a parameter (e.g., lit addr for variables).
This paper takes a look at the steps from a traditional threaded-code implementation to superinstructions, and at the size and speed effects of the...
citeseer.ist.psu.edu /ertl02threaded.html   (273 words)

  
 Kernel Embedded Interpreter   (Site not responding. Last check: 2007-10-08)
The B (a predecessor to C) compiler for the PDP-7 generated threaded code [81] as did the Fortran IV compiler for the PDP-11 [6].
The handler code is threaded during code insertion.
It is one of the goals of this work to design a virtual machine that is general purpose, yet highly optimized to the interpretation of code that is produced when compiling handlers.
www.cs.unm.edu /~riesen/prop/node18.html   (254 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.