summaryrefslogtreecommitdiff
path: root/doc/macintosh.htm
blob: 7cdcbc51f45726b68aae72fc9f694097776ea0a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML>
<HEAD>
  <TITLE>Icon on Macintosh</TITLE>
  <LINK rel="STYLESHEET" type="text/css" href="istyle.css">
  <LINK rel="SHORTCUT ICON" href="shortcut.gif">
</HEAD>

<BODY>
  <P><A href="http://www.cs.arizona.edu/icon/">
  <IMG src= "wwwcube.gif" alt="[Icon home]"
  width="128" height="144" border="0" align="right"></A></P>

  <H1>Icon on Macintosh</H1>

  <P>Gregg M. Townsend<BR>
  <SMALL>Department of Computer Science</SMALL><BR>
  <SMALL>The University of Arizona</SMALL></P>

  <P><SMALL>www.cs.arizona.edu/icon/v950/macintosh.htm<BR>
  Last updated November 19, 2009</SMALL>
  <!-- $Id: macintosh.htm,v 1.5 2009/11/19 18:49:31 gmt Exp $ --></P>

  <H2>Introduction</H2>

  <P>Because Mac OS X is based on Unix, it can run Icon. There is
  no special Macintosh interface, so as a practical matter Icon on
  the Mac is for those who are comfortable using a Unix shell in a
  Terminal window.</P>

  <P>The command-line interface to Icon is described by Unix
  <CITE>man</CITE> pages. The <CODE><A href=
  "icon.txt">icon</A></CODE> command executes a program from a
  single source file. An Icon program in a simple text file
  <CODE>prog.icn</CODE> is executed by typing <CODE>icon
  prog.icn</CODE>. The more general <CODE><A href=
  "icont.txt">icont</A></CODE> command, modeled after the Unix
  <CITE>cc</CITE> command, supports multiple files, separate
  compilation, and other features.</P>

  <H2>Co-Expressions</H2>

  <P>
  Because MacOS does not implement anonymous semaphores,
  each co-expression creates an open file.
  Programs with hundreds of active co-expressions may
  abort with a <CODE>cannot create semaphore</CODE> system error.
  The open file limit can be raised from the typical default of 256
  using a <CODE>limit descriptors <I>n</I></CODE> or
  <CODE>ulimit -nS <I>n</I></CODE> command, depending on the shell.


  <H2>Graphics</H2>

  <P>For graphics, Icon uses the X Window System, generally called X11 in
  Macintosh documentation.
  Beginning with Mac OS 10.5 (Leopard), X11 starts automatically
  when needed, and no advance preparations are needed.
  An X11 icon appears in the dock when an Icon graphics program
  is run and persists innocuously afterward.

  <H2>Building Icon</H2>

  <P>Building Icon from source requires the <A href=
  "http://developer.apple.com/tools/xcode/">Xcode</A> toolbox,
  which comes on the OS X installation disk.</P>

  <P>Icon is built in a Terminal window. The process is the same as
  on other platforms and uses the configuration named
  <CODE>macintosh</CODE>. See
  <A href="build.htm">Building Icon</A> for detailed instructions.</P>

  <BLOCKQUOTE>&nbsp;
    
</BLOCKQUOTE>
  <HR>
</BODY>
</HTML>