[Coco] CMOC C-like cross-compiler now supports const
Pierre Sarrazin
sarrazip at sarrazip.com
Tue Mar 20 20:14:30 EDT 2018
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>
More information about the Coco
mailing list