[Coco] CMOC C-like cross-compiler now supports const

Mark Marlette mmarlette at frontiernet.net
Fri Mar 23 09:47:24 EDT 2018


Pierre,

Great work!!

Look forward to it's continued improvements, amazing!!!

Regards,
 
Mark Marlette
http://www.cloud9tech.com
mark at cloud9tech.com
________________________________
From: Pierre Sarrazin <sarrazip at sarrazip.com>
To: coco at maltedmedia.com 
Sent: Tuesday, March 20, 2018 8:00 PM
Subject: [Coco] CMOC C-like cross-compiler now supports const


Hi folks,

I have just published version 0.1.50 of CMOC, my C-like cross-compiler
for the CoCo's Disk Basic environment.

Since the last version I mentioned on this list (0.1.43), the following
changes have happened:

- The `const' keyword is now supported. Warnings are issued for
  statements that are not const-correct. The warnings can be silenced
  by giving the command-line option "-Wno-const".

  Global arrays of const integers are automatically put in the read-only
  data section, which should make the #pragma const_data directive
  obsolete.

  The picojpeg.c file at <https://github.com/richgel999/picojpeg>
  can now be compiled without modification by CMOC. It might be
  possible to write a JPEG viewer by using CMOC's <disk.h> functions
  to load an image file.

- Function pointers are now type-safe (since 0.1.46).  Arrays of
  function pointers are now supported. Returning a long, float,
  double or struct through a function pointer call is now supported.

- OS-9 support has been improved.

- New options --deps and --deps-only create a makefile dependency file
  for the C file being compiled.

- Several minor bug fixes and optimizations.

As with other recent CMOC features, users should expect bugs and
missing corner cases. Bug reports are welcome.

Details can be obtained at the CMOC Home Page and in the manual:

    http://sarrazip.com/dev/cmoc.html

-- 
Pierre Sarrazin <sarrazip @ sarrazip . com>

-- 
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco


More information about the Coco mailing list