[Coco] More optimizations for the CMOC compiler

Pierre Sarrazin sarrazip at sarrazip.com
Mon Aug 10 19:20:08 EDT 2015


Dixit Kip Koon (2015-08-10 02:28):
> > > main.cc:91:57: error: ‘select’ was not declared in this scope
> Then I tried adding 
> #include <sys/select.h> 
> Immediately after it and that DID compile!

Good. I'll add that to the next version. Thanks for your help.

> Whenever I install Cygwin, I always install everything so I don't
> have to be concerned with missing any needed programs.

For those who might lack the disk space, compiling CMOC requires
at least gcc, GNU Flex and GNU Bison.

> One suggestion though.  If I remember correctly, Motorola S-Records
> is not a binary output file option.  Could you add that feature.

CMOC currently supports the Disk Basic .BIN format and the
Intel HEX format. The SREC format seems simple enough to
support, so I'll put that on my to-do list.

In the mean time, I see there's this SRecord program that
seems to be able to convert from the Intel format to SREC
(http://srecord.sourceforge.net/). Perhaps that could work for
you on the .hex file generated by CMOC. (I might end up just
telling CMOC to call that command automatically when the user
wants an SREC output.)

-- 
Pierre Sarrazin <sarrazip @ sarrazip . com> http://sarrazip.com/dev/cmoc.html


More information about the Coco mailing list