[M3devel] cm3: what are *.mc files

Rodney M. Bates rodney_bates at lcwb.coop
Wed Jun 10 02:21:23 CEST 2015



On 06/09/2015 03:02 PM, Elmar Stellnberger wrote:
> What are *.mc - files?
> They appear in TARGET - directories;
> most of them are just called _m3main.mc but some of them have other names.
>
> I ask because I am writing a program which should recognize and clear object files.
> It does not seem to be sufficient to check for uppercase directories which are located together with an src directory.
>
> Usually files of a specific type start with a 32bit magic;
> however the mc files all have different starting sequences.
>
> Is there still a straight forward way to recognize an .mc file just by its binary content?
>

They will start with either 16_FD 16_00 16_01, produced by older versions of cm3,
                          or 16_FD 16_10 16_01, produced by a very recent head compiler.
Ignore the 4th byte.
>

-- 
Rodney Bates
rodney.m.bates at acm.org



More information about the M3devel mailing list