[Coco] CMOC C-like compiler now supports float under Color Basic
Mathieu Bouchard
matju at artengine.ca
Wed Aug 16 09:44:40 EDT 2017
I'd recommend reserving the keyword "float" for 32-bit floats and "double" for
64-bit floats as on other compilers & computers, and come up with another name
such as "float40" or whatever for 40-bit float. This would be just in case you
add support for 32 or 64-bit floats one day.
Le 2017-08-12 à 21:29:00, Pierre Sarrazin a écrit :
> Hi folks,
>
> I have just published version 0.1.40 of CMOC, my C-like cross-compiler
> for the CoCo's Disk Basic environment.
>
> This version adds support for the float type, i.e., floating-point
> arithmetic, when targeting the Color Basic environment. (The utility
> routines invoked by the compiler call several Color Basic routines.)
>
> I have rewritten my FuncPlot demo to make it use the float type. This
> demo lets the user type in a math function (like sin(x)/x) and plots
> it in a PMODE 4 screen.
>
> As the float support is brand new, users should expect bugs. Reports
> of such bugs should be sent to me.
>
> CMOC and FuncPlot are available at the CMOC Home Page:
>
> 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
______________________________________________________________________
| Mathieu BOUCHARD --- tél: 514.623.3801, 514.383.3801 --- Montréal, QC
More information about the Coco
mailing list