This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move compiler OP class information into opcode.pl.
[perl5.git] / opcode.pl
CommitLineData
79072805
LW
1#!/usr/bin/perl
2
36477c24 3unlink "opcode.h";
79072805
LW
4open(OC, ">opcode.h") || die "Can't create opcode.h: $!\n";
5select OC;
6
7# Read data.
8
9while (<DATA>) {
10 chop;
11 next unless $_;
12 next if /^#/;
c07a80fd
PP
13 ($key, $desc, $check, $flags, $args) = split(/\t+/, $_, 5);
14
15 warn qq[Description "$desc" duplicates $seen{$desc}\n] if $seen{$desc};
16 die qq[Opcode "$key" duplicates $seen{$key}\n] if $seen{$key};
17 $seen{$desc} = qq[description of opcode "$key"];
18 $seen{$key} = qq[opcode "$key"];
19
79072805 20 push(@ops, $key);
c07a80fd 21 $desc{$key} = $desc;
79072805
LW
22 $check{$key} = $check;
23 $ckname{$check}++;
24 $flags{$key} = $flags;
25 $args{$key} = $args;
26}
27
28# Emit defines.
29
30$i = 0;
748a9306
LW
31print <<"END";
32#define pp_i_preinc pp_preinc
33#define pp_i_predec pp_predec
34#define pp_i_postinc pp_postinc
35#define pp_i_postdec pp_postdec
36
37typedef enum {
38END
79072805
LW
39for (@ops) {
40 print "\t", &tab(3,"OP_\U$_,"), "/* ", $i++, " */\n";
41}
85e6fe83 42print "\t", &tab(3,"OP_max"), "\n";
79072805
LW
43print "} opcode;\n";
44print "\n#define MAXO ", scalar @ops, "\n\n";
45
c07a80fd 46# Emit op names and descriptions.
79072805
LW
47
48print <<END;
49#ifndef DOINIT
a0d0e21e 50EXT char *op_name[];
79072805 51#else
a0d0e21e 52EXT char *op_name[] = {
79072805
LW
53END
54
55for (@ops) {
c07a80fd
PP
56 print qq(\t"$_",\n);
57}
58
59print <<END;
60};
61#endif
62
63END
64
65print <<END;
66#ifndef DOINIT
67EXT char *op_desc[];
68#else
69EXT char *op_desc[] = {
70END
71
72for (@ops) {
73 print qq(\t"$desc{$_}",\n);
79072805
LW
74}
75
76print <<END;
77};
78#endif
79
80END
81
82# Emit function declarations.
83
84for (sort keys %ckname) {
11343788 85 print "OP *\t", &tab(3,$_),"_((OP* o));\n";
79072805
LW
86}
87
88print "\n";
89
90for (@ops) {
db173bac 91 print "OP *\t", &tab(3, "pp_$_"), "_((ARGSproto));\n";
79072805
LW
92}
93
94# Emit ppcode switch array.
95
96print <<END;
97
98#ifndef DOINIT
a0d0e21e 99EXT OP * (*ppaddr[])();
79072805 100#else
a0d0e21e 101EXT OP * (*ppaddr[])() = {
79072805
LW
102END
103
104for (@ops) {
db173bac 105 print "\tpp_$_,\n";
79072805
LW
106}
107
108print <<END;
109};
110#endif
111
112END
113
114# Emit check routines.
115
116print <<END;
117#ifndef DOINIT
c6ecf61f 118EXT OP * (*check[]) _((OP *op));
79072805 119#else
c6ecf61f 120EXT OP * (*check[]) _((OP *op)) = {
79072805
LW
121END
122
123for (@ops) {
db173bac 124 print "\t", &tab(3, "$check{$_},"), "/* $_ */\n";
79072805
LW
125}
126
127print <<END;
128};
129#endif
130
131END
132
133# Emit allowed argument types.
134
135print <<END;
136#ifndef DOINIT
137EXT U32 opargs[];
138#else
a0d0e21e 139EXT U32 opargs[] = {
79072805
LW
140END
141
142%argnum = (
143 S, 1, # scalar
144 L, 2, # list
145 A, 3, # array value
146 H, 4, # hash value
147 C, 5, # code value
148 F, 6, # file value
149 R, 7, # scalar reference
150);
151
db173bac
MB
152%opclass = (
153 '0', 0, # baseop
154 '1', 1, # unop
155 '2', 2, # binop
156 '|', 3, # logop
157 '?', 4, # condop
158 '@', 5, # listop
159 '/', 6, # pmop
160 '$', 7, # svop
161 '*', 8, # gvop
162 '"', 9, # pvop
163 '{', 10, # loop
164 ';', 11, # cop
165 '%', 12, # baseop_or_unop
166 '-', 13, # filestatop
167 '}', 14, # loopexop
168);
169
79072805
LW
170for (@ops) {
171 $argsum = 0;
172 $flags = $flags{$_};
173 $argsum |= 1 if $flags =~ /m/; # needs stack mark
174 $argsum |= 2 if $flags =~ /f/; # fold constants
175 $argsum |= 4 if $flags =~ /s/; # always produces scalar
176 $argsum |= 8 if $flags =~ /t/; # needs target scalar
177 $argsum |= 16 if $flags =~ /i/; # always produces integer
178 $argsum |= 32 if $flags =~ /I/; # has corresponding int op
179 $argsum |= 64 if $flags =~ /d/; # danger, unknown side effects
a0d0e21e 180 $argsum |= 128 if $flags =~ /u/; # defaults to $_
db173bac
MB
181
182 $flags =~ /([^a-zA-Z])/ or die qq[Opcode "$_" has no class indicator];
183 printf STDERR "op $_, class $1 => 0x%x, argsum 0x%x",
184 $opclass{$1}, $argsum; # debug
185 $argsum |= $opclass{$1} << 8;
186 $mul = 4096; # 2 ^ OASHIFT
79072805
LW
187 for $arg (split(' ',$args{$_})) {
188 $argnum = ($arg =~ s/\?//) ? 8 : 0;
189 $argnum += $argnum{$arg};
190 $argsum += $argnum * $mul;
191 $mul <<= 4;
192 }
db173bac 193 printf STDERR ", argsum now 0x%x\n", $argsum; # debug
79072805 194 $argsum = sprintf("0x%08x", $argsum);
db173bac 195 print "\t", &tab(3, "$argsum,"), "/* $_ */\n";
79072805
LW
196}
197
198print <<END;
199};
200#endif
201END
202
203###########################################################################
204sub tab {
205 local($l, $t) = @_;
206 $t .= "\t" x ($l - (length($t) + 1) / 8);
207 $t;
208}
209###########################################################################
210__END__
211
212# Nothing.
213
214null null operation ck_null 0
93a17b20 215stub stub ck_null 0
db173bac 216scalar scalar ck_fun s% S
79072805
LW
217
218# Pushy stuff.
219
db173bac
MB
220pushmark pushmark ck_null s0
221wantarray wantarray ck_null is0
79072805 222
db173bac 223const constant item ck_svconst s$
79072805 224
db173bac
MB
225gvsv scalar variable ck_null ds*
226gv glob value ck_null ds*
227gelem glob elem ck_null d2 S S
228padsv private variable ck_null ds0
229padav private array ck_null d0
230padhv private hash ck_null d0
231padany private something ck_null d0
79072805 232
db173bac 233pushre push regexp ck_null /
79072805
LW
234
235# References and stuff.
236
db173bac
MB
237rv2gv ref-to-glob cast ck_rvconst ds1
238rv2sv scalar deref ck_rvconst ds1
239av2arylen array length ck_null is1
240rv2cv subroutine deref ck_rvconst d1
241anoncode anonymous subroutine ck_anoncode $
242prototype subroutine prototype ck_null s% S
243refgen reference constructor ck_spair m0 L
244srefgen scalar ref constructor ck_null fs0 S
245ref reference-type operator ck_fun stu% S?
246bless bless ck_fun s@ S S?
79072805
LW
247
248# Pushy I/O.
249
db173bac 250backtick backticks ck_null t%
0a753a76 251# glob defaults its first arg to $_
db173bac
MB
252glob glob ck_glob t@ S? S?
253readline <HANDLE> ck_null t%
254rcatline append I/O operator ck_null t%
79072805
LW
255
256# Bindable operators.
257
db173bac
MB
258regcmaybe regexp comp once ck_fun s1 S
259regcomp regexp compilation ck_null s| S
260match pattern match ck_match d/
261subst substitution ck_null dis/ S
262substcont substitution cont ck_null dis|
263trans character translation ck_null is" S
79072805
LW
264
265# Lvalue operators.
db173bac
MB
266# sassign is special-cased for op class
267
268sassign scalar assignment ck_null s0
269aassign list assignment ck_null t2 L L
270
271chop chop ck_spair mts% L
272schop scalar chop ck_null stu% S?
273chomp safe chop ck_spair mts% L
274schomp scalar safe chop ck_null stu% S?
275defined defined operator ck_rfun isu% S?
276undef undef operator ck_lfun s% S?
277study study ck_fun su% S?
278pos match position ck_lfun stu% S?
279
280preinc preincrement ck_lfun dIs1 S
281i_preinc integer preincrement ck_lfun dis1 S
282predec predecrement ck_lfun dIs1 S
283i_predec integer predecrement ck_lfun dis1 S
284postinc postincrement ck_lfun dIst1 S
285i_postinc integer postincrement ck_lfun dist1 S
286postdec postdecrement ck_lfun dIst1 S
287i_postdec integer postdecrement ck_lfun dist1 S
79072805
LW
288
289# Ordinary operators.
290
db173bac
MB
291pow exponentiation ck_null fst2 S S
292
293multiply multiplication ck_null Ifst2 S S
294i_multiply integer multiplication ck_null ifst2 S S
295divide division ck_null Ifst2 S S
296i_divide integer division ck_null ifst2 S S
297modulo modulus ck_null Iifst2 S S
298i_modulo integer modulus ck_null ifst2 S S
299repeat repeat ck_repeat mt2 L S
300
301add addition ck_null Ifst2 S S
302i_add integer addition ck_null ifst2 S S
303subtract subtraction ck_null Ifst2 S S
304i_subtract integer subtraction ck_null ifst2 S S
305concat concatenation ck_concat fst2 S S
306stringify string ck_fun fst@ S
307
308left_shift left bitshift ck_bitop fst2 S S
309right_shift right bitshift ck_bitop fst2 S S
310
311lt numeric lt ck_null Iifs2 S S
312i_lt integer lt ck_null ifs2 S S
313gt numeric gt ck_null Iifs2 S S
314i_gt integer gt ck_null ifs2 S S
315le numeric le ck_null Iifs2 S S
316i_le integer le ck_null ifs2 S S
317ge numeric ge ck_null Iifs2 S S
318i_ge integer ge ck_null ifs2 S S
319eq numeric eq ck_null Iifs2 S S
320i_eq integer eq ck_null ifs2 S S
321ne numeric ne ck_null Iifs2 S S
322i_ne integer ne ck_null ifs2 S S
323ncmp spaceship operator ck_null Iifst2 S S
324i_ncmp integer spaceship ck_null ifst2 S S
325
326slt string lt ck_scmp ifs2 S S
327sgt string gt ck_scmp ifs2 S S
328sle string le ck_scmp ifs2 S S
329sge string ge ck_scmp ifs2 S S
330seq string eq ck_null ifs2 S S
331sne string ne ck_null ifs2 S S
332scmp string comparison ck_scmp ifst2 S S
333
334bit_and bitwise and ck_bitop fst2 S S
335bit_xor bitwise xor ck_bitop fst2 S S
336bit_or bitwise or ck_bitop fst2 S S
337
338negate negate ck_null Ifst1 S
339i_negate integer negate ck_null ifst1 S
340not not ck_null ifs1 S
341complement 1's complement ck_bitop fst1 S
79072805
LW
342
343# High falutin' math.
344
db173bac
MB
345atan2 atan2 ck_fun fst@ S S
346sin sin ck_fun fstu% S?
347cos cos ck_fun fstu% S?
348rand rand ck_fun st% S?
349srand srand ck_fun s% S?
350exp exp ck_fun fstu% S?
351log log ck_fun fstu% S?
352sqrt sqrt ck_fun fstu% S?
79072805 353
cf26c822
CS
354# Lowbrow math.
355
db173bac
MB
356int int ck_fun fstu% S?
357hex hex ck_fun fstu% S?
358oct oct ck_fun fstu% S?
359abs abs ck_fun fstu% S?
79072805
LW
360
361# String stuff.
362
db173bac
MB
363length length ck_lengthconst istu% S?
364substr substr ck_fun st@ S S S?
365vec vec ck_fun ist@ S S S
79072805 366
db173bac
MB
367index index ck_index ist@ S S S?
368rindex rindex ck_index ist@ S S S?
79072805 369
db173bac
MB
370sprintf sprintf ck_fun_locale mfst@ S L
371formline formline ck_fun ms@ S L
372ord ord ck_fun ifstu% S?
373chr chr ck_fun fstu% S?
374crypt crypt ck_fun fst@ S S
375ucfirst upper case first ck_fun_locale fstu% S?
376lcfirst lower case first ck_fun_locale fstu% S?
377uc upper case ck_fun_locale fstu% S?
378lc lower case ck_fun_locale fstu% S?
379quotemeta quote metachars ck_fun fstu% S?
79072805
LW
380
381# Arrays.
382
db173bac
MB
383rv2av array deref ck_rvconst dt1
384aelemfast known array element ck_null s* A S
385aelem array element ck_null s2 A S
386aslice array slice ck_null m@ A L
79072805 387
aa689395 388# Hashes.
79072805 389
db173bac
MB
390each each ck_fun t% H
391values values ck_fun t% H
392keys keys ck_fun t% H
393delete delete ck_delete % S
394exists exists operator ck_exists is% S
395rv2hv hash deref ck_rvconst dt1
396helem hash elem ck_null s2@ H S
397hslice hash slice ck_null m@ H L
79072805
LW
398
399# Explosives and implosives.
400
db173bac
MB
401unpack unpack ck_fun @ S S
402pack pack ck_fun mst@ S L
403split split ck_split t@ S S S
404join join ck_fun mst@ S L
79072805
LW
405
406# List operators.
407
db173bac
MB
408list list ck_null m@ L
409lslice list slice ck_null 2 H L L
410anonlist anonymous list ck_fun ms@ L
411anonhash anonymous hash ck_fun ms@ L
79072805 412
db173bac
MB
413splice splice ck_fun m@ A S? S? L
414push push ck_fun imst@ A L
415pop pop ck_shift si% A
416shift shift ck_shift s% A
417unshift unshift ck_fun imst@ A L
418sort sort ck_sort m@ C? L
419reverse reverse ck_fun mt@ L
79072805 420
db173bac
MB
421grepstart grep ck_grep dm@ C L
422grepwhile grep iterator ck_null dt|
79072805 423
db173bac
MB
424mapstart map ck_grep dm@ C L
425mapwhile map iterator ck_null dt|
a0d0e21e 426
79072805
LW
427# Range stuff.
428
db173bac
MB
429range flipflop ck_null ? S S
430flip range (or flip) ck_null 1 S S
431flop range (or flop) ck_null 1
79072805
LW
432
433# Control.
434
db173bac
MB
435and logical and ck_null |
436or logical or ck_null |
437xor logical xor ck_null fs| S S
438cond_expr conditional expression ck_null d?
439andassign logical and assignment ck_null s|
440orassign logical or assignment ck_null s|
441
442method method lookup ck_null d1
443entersub subroutine entry ck_subr dmt1 L
444leavesub subroutine exit ck_null 1
445caller caller ck_fun t% S?
446warn warn ck_fun imst@ L
447die die ck_fun dimst@ L
448reset reset ck_fun is% S?
449
450lineseq line sequence ck_null @
451nextstate next statement ck_null s;
452dbstate debug next statement ck_null s;
453unstack unstack ck_null s0
79072805 454enter block entry ck_null 0
db173bac
MB
455leave block exit ck_null @
456scope block ck_null @
457enteriter foreach loop entry ck_null d{
79072805 458iter foreach loop iterator ck_null 0
db173bac
MB
459enterloop loop entry ck_null d{
460leaveloop loop exit ck_null 2
461return return ck_null dm@ L
462last last ck_null ds}
463next next ck_null ds}
464redo redo ck_null ds}
465dump dump ck_null ds}
466goto goto ck_null ds}
467exit exit ck_fun ds% S?
79072805 468
a0d0e21e
LW
469#nswitch numeric switch ck_null d
470#cswitch character switch ck_null d
79072805
LW
471
472# I/O.
473
db173bac
MB
474open open ck_fun ist@ F S?
475close close ck_fun is% F?
476pipe_op pipe ck_fun is@ F F
79072805 477
db173bac
MB
478fileno fileno ck_fun ist% F
479umask umask ck_fun ist% S?
480binmode binmode ck_fun s% F
79072805 481
db173bac
MB
482tie tie ck_fun idms@ R S L
483untie untie ck_fun is% R
484tied tied ck_fun s% R
485dbmopen dbmopen ck_fun is@ H S S
486dbmclose dbmclose ck_fun is% H
79072805 487
db173bac
MB
488sselect select system call ck_select t@ S S S S
489select select ck_select st@ F?
79072805 490
db173bac
MB
491getc getc ck_eof st% F?
492read read ck_fun imst@ F R S S?
493enterwrite write ck_fun dis% F?
494leavewrite write exit ck_null 1
79072805 495
db173bac
MB
496prtf printf ck_listiob ims@ F? L
497print print ck_listiob ims@ F? L
79072805 498
db173bac
MB
499sysopen sysopen ck_fun s@ F S S S?
500sysseek sysseek ck_fun s@ F S S
501sysread sysread ck_fun imst@ F R S S?
502syswrite syswrite ck_fun imst@ F S S S?
79072805 503
db173bac
MB
504send send ck_fun imst@ F S S S?
505recv recv ck_fun imst@ F R S S
79072805 506
db173bac
MB
507eof eof ck_eof is% F?
508tell tell ck_fun st% F?
509seek seek ck_fun s@ F S S
9b01e405 510# truncate really behaves as if it had both "S S" and "F S"
db173bac 511truncate truncate ck_trunc is@ S S
79072805 512
db173bac
MB
513fcntl fcntl ck_fun st@ F S S
514ioctl ioctl ck_fun st@ F S S
515flock flock ck_fun ist@ F S
79072805
LW
516
517# Sockets.
518
db173bac
MB
519socket socket ck_fun is@ F S S S
520sockpair socketpair ck_fun is@ F F S S S
79072805 521
db173bac
MB
522bind bind ck_fun is@ F S
523connect connect ck_fun is@ F S
524listen listen ck_fun is@ F S
525accept accept ck_fun ist@ F F
526shutdown shutdown ck_fun ist@ F S
79072805 527
db173bac
MB
528gsockopt getsockopt ck_fun is@ F S S
529ssockopt setsockopt ck_fun is@ F S S S
79072805 530
db173bac
MB
531getsockname getsockname ck_fun is% F
532getpeername getpeername ck_fun is% F
79072805
LW
533
534# Stat calls.
535
db173bac
MB
536lstat lstat ck_ftst u- F
537stat stat ck_ftst u- F
538ftrread -R ck_ftst isu- F
539ftrwrite -W ck_ftst isu- F
540ftrexec -X ck_ftst isu- F
541fteread -r ck_ftst isu- F
542ftewrite -w ck_ftst isu- F
543fteexec -x ck_ftst isu- F
544ftis -e ck_ftst isu- F
545fteowned -O ck_ftst isu- F
546ftrowned -o ck_ftst isu- F
547ftzero -z ck_ftst isu- F
548ftsize -s ck_ftst istu- F
549ftmtime -M ck_ftst stu- F
550ftatime -A ck_ftst stu- F
551ftctime -C ck_ftst stu- F
552ftsock -S ck_ftst isu- F
553ftchr -c ck_ftst isu- F
554ftblk -b ck_ftst isu- F
555ftfile -f ck_ftst isu- F
556ftdir -d ck_ftst isu- F
557ftpipe -p ck_ftst isu- F
558ftlink -l ck_ftst isu- F
559ftsuid -u ck_ftst isu- F
560ftsgid -g ck_ftst isu- F
561ftsvtx -k ck_ftst isu- F
562fttty -t ck_ftst is- F
563fttext -T ck_ftst isu- F
564ftbinary -B ck_ftst isu- F
79072805
LW
565
566# File calls.
567
db173bac
MB
568chdir chdir ck_fun ist% S?
569chown chown ck_fun imst@ L
570chroot chroot ck_fun istu% S?
571unlink unlink ck_fun imstu@ L
572chmod chmod ck_fun imst@ L
573utime utime ck_fun imst@ L
574rename rename ck_fun ist@ S S
575link link ck_fun ist@ S S
576symlink symlink ck_fun ist@ S S
577readlink readlink ck_fun stu% S?
578mkdir mkdir ck_fun ist@ S S
579rmdir rmdir ck_fun istu% S?
79072805
LW
580
581# Directory calls.
582
db173bac
MB
583open_dir opendir ck_fun is@ F S
584readdir readdir ck_fun % F
585telldir telldir ck_fun st% F
586seekdir seekdir ck_fun s@ F S
587rewinddir rewinddir ck_fun s% F
588closedir closedir ck_fun is% F
79072805
LW
589
590# Process control.
591
db173bac
MB
592fork fork ck_null ist0
593wait wait ck_null ist0
594waitpid waitpid ck_fun ist@ S S
595system system ck_exec imst@ S? L
596exec exec ck_exec dimst@ S? L
597kill kill ck_fun dimst@ L
598getppid getppid ck_null ist0
599getpgrp getpgrp ck_fun ist% S?
600setpgrp setpgrp ck_fun ist@ S? S?
601getpriority getpriority ck_fun ist@ S S
602setpriority setpriority ck_fun ist@ S S S
79072805
LW
603
604# Time calls.
605
db173bac 606time time ck_null ist0
79072805 607tms times ck_null 0
db173bac
MB
608localtime localtime ck_fun t% S?
609gmtime gmtime ck_fun t% S?
610alarm alarm ck_fun istu% S?
611sleep sleep ck_fun ist% S?
79072805
LW
612
613# Shared memory.
614
db173bac
MB
615shmget shmget ck_fun imst@ S S S
616shmctl shmctl ck_fun imst@ S S S
617shmread shmread ck_fun imst@ S S S S
618shmwrite shmwrite ck_fun imst@ S S S S
79072805
LW
619
620# Message passing.
621
db173bac
MB
622msgget msgget ck_fun imst@ S S
623msgctl msgctl ck_fun imst@ S S S
624msgsnd msgsnd ck_fun imst@ S S S
625msgrcv msgrcv ck_fun imst@ S S S S S
79072805
LW
626
627# Semaphores.
628
db173bac
MB
629semget semget ck_fun imst@ S S S
630semctl semctl ck_fun imst@ S S S S
631semop semop ck_fun imst@ S S
79072805
LW
632
633# Eval.
634
db173bac
MB
635require require ck_require du% S?
636dofile do 'file' ck_fun d1 S
637entereval eval string ck_eval d% S
638leaveeval eval exit ck_null 1 S
639#evalonce eval constant string ck_null d1 S
640entertry eval block ck_null |
641leavetry eval block exit ck_null @
79072805
LW
642
643# Get system info.
644
db173bac
MB
645ghbyname gethostbyname ck_fun % S
646ghbyaddr gethostbyaddr ck_fun @ S S
79072805 647ghostent gethostent ck_null 0
db173bac
MB
648gnbyname getnetbyname ck_fun % S
649gnbyaddr getnetbyaddr ck_fun @ S S
79072805 650gnetent getnetent ck_null 0
db173bac
MB
651gpbyname getprotobyname ck_fun % S
652gpbynumber getprotobynumber ck_fun @ S
79072805 653gprotoent getprotoent ck_null 0
db173bac
MB
654gsbyname getservbyname ck_fun @ S S
655gsbyport getservbyport ck_fun @ S S
79072805 656gservent getservent ck_null 0
db173bac
MB
657shostent sethostent ck_fun is% S
658snetent setnetent ck_fun is% S
659sprotoent setprotoent ck_fun is% S
660sservent setservent ck_fun is% S
661ehostent endhostent ck_null is0
662enetent endnetent ck_null is0
663eprotoent endprotoent ck_null is0
664eservent endservent ck_null is0
665gpwnam getpwnam ck_fun % S
666gpwuid getpwuid ck_fun % S
79072805 667gpwent getpwent ck_null 0
db173bac
MB
668spwent setpwent ck_null is0
669epwent endpwent ck_null is0
670ggrnam getgrnam ck_fun % S
671ggrgid getgrgid ck_fun % S
79072805 672ggrent getgrent ck_null 0
db173bac
MB
673sgrent setgrent ck_null is0
674egrent endgrent ck_null is0
675getlogin getlogin ck_null st0
79072805
LW
676
677# Miscellaneous.
678
db173bac 679syscall syscall ck_fun imst@ S L
c0329465
MB
680
681# For multi-threading
db173bac 682lock lock ck_rfun s% S