You may be interested in data / data transfer specification languages ββsuch as Google protocol buffers, as well as ASN.1. This is a slightly different bias that you are looking for, but in the same vein.
Both are ways to declare common messages for communication. Message specification buffer protocols are βcompiledβ into different languages, but the central protocol is consistent. ASN.1 has many different compilation utilities, as well as various protocol representations that are logically compatible with various literal implementations. Look, for example, on XER, PER vs. BER.
I would like a specification language that just focuses on a simple, packaged binary layout versus the logical memory structure. Maybe simple C structures are the simplest common way to express this. I was hoping that ASN.1 would somehow handle this, but with a little look at it, ASN.1 PER is close, but not quite that way.
Edit: Apache Thrift and Capn 'Proto can also be interesting.
Digikata
source share