[M3devel] cm3: what are *.mc files

Elmar Stellnberger estellnb at elstel.org
Sat Jun 13 10:40:40 CEST 2015


Am 12.06.15 um 22:10 schrieb Jay:
> No guarantees on any of this imho. Nor the extension. The files are 
> usually temporary. What are the magic bytes for .c? What is the 
> purpose here? We could add 4 ignored bytes or even a guid but it'd be 
> a waste.
human readable text files do not need any magic
but binaries do (though auto-generated text files
by a program will need a header, too).

A cm3 and middle end version numbers for a
compatibilty check if not also a creation timestamp
after the magic would be very beneficial, too.

It is unprofessional and a bad habit to emit a binary
stream without a header and versioning information.
Have you never used a ready compiled cm3cg for
compiling a new frontend? - There should be a
middle end version number to check whether this
is prone to fail (and possibly one trying to force
application of cm3cg on a newer intermediate code
stream. ).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20150613/34740074/attachment-0002.html>


More information about the M3devel mailing list