English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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