Add basic function implement.

1. Add IO function.
2. Add memory alloc/free function.

Signed-off-by: oooxff <oooxff@gmail.com>