- Computer Science Laboratory

LIP6 1998/049

  • Reports «Encodage/décodage vu comme un processus de compilation/interprétation»
  • Ch. Queinnec
  • 14 pages - 12/15/1998 - document en - http://www.lip6.fr/lip6/reports/1998/lip6.1998.049.ps.gz 108 Ko
  • Contact Christian.Queinnec (at) nulllip6.fr
  • Ancien Thème : SPI
  • Marshaling is the process through which structured values are serialized into a stream of bytes; unmarshaling converts this stream of bytes back to structured values. Most often, for a given data structure, the marshaler and the unmarshaler are tightly related pieces of code that are synthesized conjunctly. This paper proposes a new point of view: the unmarshaler is considered as a byte-code interpreter evaluating a stream of bytes considered as a program ie{} a sequence of commands interspersed with quoted raw data. This program is an expression of the {em marshaling language}. From that point of view, the marshaler logically appears as a compiler translating values into expressions of the marshaling language.