Hi, This one is pretty obvious, don't truncate the result of code_gen_buffer_size calculation to int when the target is an unsigned long. Gives funny results when trying to boot something with a lot of memory on a 64 bit system. Cheers, Jes