Re: Top-level command invokations not compiled



On 27 Aug., 14:36, Alexandre Ferrieux <alexandre.ferri...@xxxxxxxxx>
wrote:

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/d...

If you want to force compilation, put the code in question into an "if
1 { ... }" block.
Code in procedures still has the advantage that local variables can be
dealt with more efficiently.
.



Relevant Pages

  • Re: More on byte compilation
    ... If you define a command after ... Correcting your unbraced $x (which keeps us from compiling the ... command, and worse, from compiling its body!), the bytecode ...
    (comp.lang.tcl)
  • Re: thoughts for a C compiler
    ... different language (it is based around soft-typing and prototype ... the bytecode is likely to be a kind of "annotated bytecode" as opposed to ... lower-level optimizations when compiling from bytecode to assembly. ...
    (comp.lang.misc)
  • Re: Dynamically extends a class with java.lang.reflect.Proxy or similar
    ... There is another way instead creating a source file and compiling it? ... I'm somewhat frightened of bytecode rewriters. ... Generics may be new, and run-time erasure sure seems kludgey at times, but generics serve an old-fashioned, conservative goal - source-code correctness through strict control. ...
    (comp.lang.java.programmer)
  • Re: Java on the Apple2 and C64
    ... Java close to the p-machine. ... the relatively "looser" Java bytecode. ... compiling", and was originally part of a strategy in which compiled ... "discoveries" in computing are simply re-discoveries by folks who either ...
    (comp.sys.apple2)
  • Re: compiling to python byte codes
    ... > I remembered reading a MSc thesis about compiling Perl to Java ... > had compiled scheme to java class files quite successfully. ... the Python ... > they are the so called python bytecode files. ...
    (comp.lang.python)