copy alloc from assembler.git to linux.git. Migrate to C?