Multi-value return?

Dain Sundstrom dain at iq80.com
Wed Jan 9 09:52:40 PST 2013


Hi all, 

I'm working on a small, simple, statically-typed language which has primitive data types and simple single-level structs.  For example an ip6 address is a struct of two longs.  For the vast majority of code, I can represent the structs directly on the stack or in slots as primitives.  The obvious issue is, how do I efficiently return a struct from a function?  So how is everyone else dealing with multi-return (and does your technique work in existing Java7)?

Thanks,

-dain


More information about the mlvm-dev mailing list