[Coco] CMOC C-like cross-compiler now supports const
James Jones
jejones3141 at gmail.com
Tue Mar 20 21:24:19 EDT 2018
Can pointer types be const qualified? That causes major difficulties in
OS-9, because position-independent code and data that lives in some place
determined at run time and pointed at by a register makes it impossible to
correctly do const-qualified pointers.
On Tue, Mar 20, 2018 at 7:14 PM, Pierre Sarrazin <sarrazip at sarrazip.com>
wrote:
> 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