reform loop code

Signed-off-by: xiehuc <xiehuc@gmail.com>
add some debug information

Signed-off-by: xiehuc <xiehuc@gmail.com>
adjust memory layout

Signed-off-by: xiehuc <xiehuc@gmail.com>
nest loop initial process

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