#list

C Styled Script
Reference Manual

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using The CSS Executive
Language
Directives
   #include
   #list
   #loadLibrary
   #loadScript
   #logFile
System Library
String Library
Regular Expression Lib.
File Library
Database Library
C API
C++ API
CSS 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 'KcSyslib'  // 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.css: 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 LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>