Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Byterun question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1998-06-22 (23:41)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: Byterun question
> byterun/fix_code.c refers to STOP as the instructions with the highest 
> opcode all over the place.  Yet, byterun/instruct.h list EVENT and
> BREAK after STOP.  Could someone illuminate?

My pleasure.  The EVENT and BREAK opcodes never occur in a bytecode
executable file.  They are inserted by the debugger by run-time
modification of the bytecode.  Hence, the program loading code in 
byterun/fix_code.c always sees opcodes that are <= STOP.

- Xavier Leroy