[Coco] CMOC C-like compiler now supports float under Color Basic

John W. Linville linville at tuxdriver.com
Fri Aug 18 12:43:00 EDT 2017


Ah, what color to paint the bikeshed? :-)

John

On Fri, Aug 18, 2017 at 11:48:06AM -0400, Mathieu Bouchard wrote:
> 
> As there is no other 40-bit float format that I know of, and as the other
> MBF formats (32 and 64 bits) have probably never been used with the CoCo and
> quite rarely since QuickBasic 4.0, I think it is quite safe to just name it
> float40 and not mbf40.
> 
> 
> Le 2017-08-16 à 10:51:00, John W. Linville a écrit :
> 
> > This is a really good recommendation. It aligns with what I had in
> > mind for my work with the bcc09 compiler (which I have mostly put on
> > hold while CMOC develops).
> > 
> > I would propose a type name like "mbf40", since the Color BASIC ROMs
> > are using the Microsoft Binary Format:
> > 
> > 	https://en.wikipedia.org/wiki/Microsoft_Binary_Format
> > 
> > Just my $0.02...
> > 
> > John
> > 
> > On Wed, Aug 16, 2017 at 09:44:40AM -0400, Mathieu Bouchard wrote:
> > > 
> > > 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
> > > 
> > > -- 
> > > Coco mailing list
> > > Coco at maltedmedia.com
> > > https://pairlist5.pair.net/mailman/listinfo/coco
> > 
> > -- 
> > John W. Linville		Someday the world will need a hero, and you
> > linville at tuxdriver.com			might be all we have.  Be ready.
> > 
> > -- 
> > 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


-- 
John W. Linville		Someday the world will need a hero, and you
linville at tuxdriver.com			might be all we have.  Be ready.


More information about the Coco mailing list