Fefactor codegen for x86

Manage delta localy and explicitly to make modifications easer
private tests