memory management and flexible widths