assert on not exceeding memory size in c backend output
fix big memcpys in c backend