Re: Top-level command invokations not compiled



On Aug 27, 2:08 pm, Googie <n...@xxxxxxxx> wrote:
Hi,

There are many places where the following note is mentioned:

"Top-level invokations of commands are not byte-compiled, so be aware to put
most of them into procedure(s), so they run faster." -...or something like
that.

Well, why aren't they compiled? What is the reason to aviod compiling them?

Because since they are toplevel they will run just once, hence the
cost of compiling them will not be diluted over several runs of the
bytecode. See Miguel's recent summary on this:

http://groups.google.com/group/comp.lang.tcl/tree/browse_frm/thread/d82038ee84b6af25/1fa41def63fa5bfc?hl=en&rnum=31&q=ferrieux+junking&_done=%2Fgroup%2Fcomp.lang.tcl%2Fbrowse_frm%2Fthread%2Fd82038ee84b6af25%3Fhl%3Den%26tvc%3D1%26q%3Dferrieux%2Bjunking%26safe%3Dimages%26#doc_181bafa752a80104

-Alex
.



Relevant Pages

  • Re: Toward a Forth thats easier to learn
    ... I heard that Mitch Bradley set up a Forth that did loops in commands. ... He had one version for compiling and another version for interpreting. ... Thus we get the assertion that these problems aren't barriers to ... the biggest barrier I remember was the stack. ...
    (comp.lang.forth)
  • Re: Using put command to place text in figures
    ... header, then commented out the \usepackage commands till it worked. ... compiling give no clue to where the problem lies) ...
    (comp.text.tex)
  • Re: make buildworld / make buildkernel etc
    ... >> All three commands eventually failed, so I removed some extra RAM I'd ... > using and the world you are compiling). ... enabled APIC_IO without SMP in the kernel config. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Build your own Forth for Microchip PIC: the nature of metacompilation
    ... But we've known for three decades that compiling commands makes the full language available at both levels, ... You have never tried a Forth dialect like LSE, and I doubt that you would be willing to understand it anyway. ... but you still have to use block structure for loops and conditionals. ...
    (comp.lang.forth)
  • RE: two questions that need answering
    ... >> NetDDE local exploit for win2k machines allowing ... >> commands to be run as system?? ... I have had no luck in compiling it and I ... scheduling service running as SYSTEM and then have an at that calls CMD.EXE ...
    (Focus-Microsoft)