Porting modula-2 stacks to c