#list

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
Directives
   #include
   #list
   #loadLibrary
   #loadScript
   #logFile
   #if / #else / #endif
   #message
   #error
   #block
System library
String library
Math library
Regular expression lib.
File library
Database library
Async Communication
Registry/Profile handling
Windows control
C API
C++ Class Interface
CSL links
  

Enables/disables P-Code listing depending on the argument which may be 0/1 or false/true respectively. The listing will be displayed by sysLog, so using this directive requires the system library loaded in advance.

Optionally you may save the listing in a file by opening a logfile in advance:

#loadLibrary 'ZcSysLib'  // load system library
#logFile 'listing'       // open logfile
#list true               // enable listing
 
var main()
{
  sysLog('hello world');
} // main
 
#logFile ''              // close logfile

This will show the listing on screen and save it to listing.log:

test.csl: var main()
 
address  opcode parameter
-------- ------ -----------------------------
       0 push   hello world
       1 push   1
       2 call   sysLog
       3 pop
       4 push
       5 ret
 
code: 36  text: 21  total: 57
  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>