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

Gene Heskett gheskett at shentel.net
Fri Aug 18 15:25:55 EDT 2017


On Friday 18 August 2017 12:43:00 John W. Linville wrote:

> Ah, what color to paint the bikeshed? :-)
>
> John
>
Indeed John. I might have some suggestions, but they'd be in the local 
vernacular and NSFW.  In a camo pattern & colors.

> 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.


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>


More information about the Coco mailing list