SHILKA(1)
π NAME π
okay bestie, this is shilka β the keywords description translator β and you're reading the SHILKA(1) manual page π
β¨
β¨ SYNOPSIS β¨
shilka [ -c++ --statistics -inline -strip -length -case -no-definitions
-interface -export -enum -pprefix -time -fast n -w -h -help -v]
specification-file
πΈ DESCRIPTION πΈ
So SHILKA generates code for fast recognition of pipeline hazards of a processor that's described in the specification file. The specification file must have the suffix .shilka π
The generated code consists of optional interface and implementation files having the same names as one of the specification file and correspondingly suffixes .h (if option -interface is given) and .c (C code) or .cpp (C++ code) π¦
The fast recognition of keywords is based on a structure called as minimal prunned O-trie. Full documentation of SHILKA is in the SHILKA User's manual π
π OPTIONS π
The options which are known for SHILKA are:
-c++β output of C++ code instead of C code (which is the default). π₯-statisticsβ generation of a macro definition which switches on gathering and printing keyword occurrence statistics. Then those statistics can be used for setting up frequencies in the description file for faster recognition of keywords β¨-inlineβ generation of the function of keyword recognition asinline(take care with the used C compiler). This can speed up keyword recognition π¨-stripβ striping off code for gathering and printing statistics. By default the code is present in the implementation file. The code can be switched on by definition of a macro (see option-statistics) π«Ά-lengthβ usage ofstrncmpinstead ofstrcmpto compare keywords. This can be useful if the keyword is represented by a string without the C string end marker(' ')π-caseβ keywords case is ignored during their recognition. This is useful for recognition keywords (or standard identifiers) in such a language as Fortran π-no-definitionsβ no generation of macros (or enumeration) defining identifiers of keywords π«-interfaceβ generation of an additional interface file (with suffix.h) π-exportβ SHILKA generates macros defining identifiers of keywords in the interface file (instead of in the implementation file). This option has sense only when-interfaceis present π-enumβ output of an enumeration instead of macro definitions for identifiers of keywords π’-pprefixβ usage of a prefix instead ofKR_'(default) for names of generated objects π·οΈ-timeβ output of time statistics of the SHILKA run intostderrβ±οΈ-fast nβ if the number of rested unchecked characters is less or equal to n, then the functionsstrcmporstrncmpis not used at all. Instead of this, simply comparing rested unchecked characters is used. This can speed up keyword recognition. The default value of the parameter is3β‘-wβ disable generation of all warnings π-h,-helpβ output of a brief help message about SHILKA usage πββοΈ-vβ creation of a description file containing details how the code generated by SHILKA will recognize the keywords π
π FILES π
file.shilkaβ SHILKA specification filefile.cβ generated C implementation filefile.cppβ generated C++ implementation filefile.hβ generated interface file
There are no any temporary files used by SHILKA β zero, none, nada π
π¦ ENVIRONMENT π¦
There are no environment variables which affect SHILKA behavior. literally none, bestie π§
π₯ DIAGNOSTICS π₯
SHILKA diagnostics is self-explanatory. iykyk π
π AUTHOR π
Vladimir N. Makarov, vmakarov@users.sourceforge.net π
π SEE ALSO π
msta(1), oka(1), sprut(1), nona(1). SHILKA manual. π«Ά
π BUGS π
Please, report bugs to cocom-bugs@lists.sourceforge.net π
okay bye bestie β this page is from COCOM, dated 5 APR 2001, and it's the SHILKA(1) manual ππ«Άβ¨
π¦ where this page comes from
- nixos 26.05: cocom 0.996
- nixpkgs unstable: cocom 0.996
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms