Mail Archives: djgpp/1997/08/17/20:35:35
Chris Croughton wrote:
> No. The nearest is the ANSI/DEC VT100-type text escape sequences,
> but even they are honoured more in name than in implementation
> (for instance the PC's ANSI.SYS does several things against the
> spec., as well as adding things).
curses packages are also available for the Mac, but I haven't checked
which seems to be the best.
> Note that the Mac is primarily a GUI system, whereas DJGPP is
> a command-line compiler and the ANSI C library functions are
> basically designed for terminal I/O or similar (i.e. straight
> text). I don't know if the Mac includes any equivalent of
> the Win95 Console Mode programs, or the Windows DOS box, but
> I haven't seen it.
All major Mac compilers (notably MetroWerks CodeWarrior and Symantec Think
C) have pretty good ANSI C compatibility (considering Mac compilers in the
past had absolutely none). This includes stdout routines -- a little
console window will automatically pop up.
> Do you mean produce a Mac executable (not .exe there) on a PC to
> run on a Mac? I don't know of any cross-compilers for that -
> which it would be possible to produce a version of DJGPP which
> did it you'd have to do a lot of work (like rewriting half the
> library, as well as putting the new code generation on).
I know there are 680x0 cross-compilers for gcc, and there may be (and
probably are) PowerPC cross-compilers by now. Unfortunately, there's a
lot more to having a Mac application that will run under MacOS than just
having a binary file with machine instructions in it.
--
Erik Max Francis, &tSftDotIotE / email / mailto:max AT alcyone DOT com
Alcyone Systems / web / http://www.alcyone.com/max/
San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W
\
"Love is not love which alters / when it alteration finds."
/ William Shakespeare, _Sonnets_, 116
- Raw text -