Branch: Tag:

2002-04-12

2002-04-12 09:30:13 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed type for encode_value() and encode_value_canonic().
Added byte-code relocation info.
Added new program encoding method (2).
Encoded programs should now be portable across architectures.

Rev: src/builtin_functions.c:1.357
Rev: src/encode.c:1.87
Rev: src/peep.c:1.47
Rev: src/program.c:1.310
Rev: src/program_areas.h:1.8

15:   #include "bignum.h"   #include "opcodes.h"    - RCSID("$Id: peep.c,v 1.46 2001/08/15 15:29:23 mast Exp $"); + RCSID("$Id: peep.c,v 1.47 2002/04/12 09:30:12 grubba Exp $");      static void asm_opt(void);   
351:    break;       case F_DATA: -  ins_int(c->arg, (void(*)(char))add_to_program); +  add_relocated_int_to_program(c->arg);    break;       case F_LABEL:
377:    if(c->arg > max_label || c->arg < 0) fatal("Jump to unknown label?\n");   #endif    tmp = DO_NOT_WARN((INT32)PIKE_PC); -  ins_int(jumps[c->arg], (void(*)(char))add_to_program); +  add_relocated_int_to_program(jumps[c->arg]);    jumps[c->arg]=tmp;    break;