bstream compilation