annotate src/m/sun3.h @ 1799:19c89a2e24b6

[xemacs-hg @ 2003-11-20 16:04:45 by james] Autodetect the typeof extension.
author james
date Thu, 20 Nov 2003 16:04:47 +0000
parents 3ecd8885ac67
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1 /* Synched up with: FSF 19.31. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
2
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
3 /* machine description file for Sun 68000's OPERATING SYSTEM version 3
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
4 (for either 68000 or 68020 systems). */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
5
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
6 #include "sun2.h"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
7 #undef sun2
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
8 #ifndef sun3
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9 #define sun3
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
10 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
11
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
12 /* The following line tells the configuration script what sort of
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13 operating system this machine is likely to run.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
14 USUAL-OPSYS="note"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
16 NOTE-START
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
17 Sun 1, 2 and 3 (-machine=sun1, -machine=sun2, -machine=sun3;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
18 -opsystem=bsd4-2 or -opsystem=sunos4)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
19
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
20 Whether you should use sun1, sun2 or sun3 depends on the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
21 VERSION OF THE OPERATING SYSTEM
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
22 you have. There are three machine types for different versions of
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
23 SunOS. All are derived from Berkeley 4.2, meaning that you should
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
24 use -opsystem=bsd4-2. Emacs 17 has run on all of them. You will
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
25 need to use sun3 on Sun 2's running SunOS release 3.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
26
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
27 For SunOS release 4 on a Sun 3, use -machine=sun3 and
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
28 -opsystem=sunos4. See the file share-lib/SUNBUG for how to solve
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
29 problems caused by bugs in the "export" version of SunOS 4.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
30 NOTE-END */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
31
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
32 /* Say that the text segment of a.out includes the header;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
33 the header actually occupies the first few bytes of the text segment
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
34 and is counted in hdr.a_text. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
35
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
36 #define A_TEXT_OFFSET(HDR) sizeof (HDR)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
37
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
38 /* This is the offset of the executable's text, from the start of the file. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
39
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
40 #define A_TEXT_SEEK(HDR) (N_TXTOFF (hdr) + sizeof (hdr))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
41
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
42 /* In case we are using floating point, work together with crt0.c. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
43
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
44 #ifndef __GNUC__
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
45 #define C_SWITCH_MACHINE "-fsoft"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
46 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
47
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
48 /* This line is needed if you are linking with X windows
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
49 and the library xlib was compiled to use the 68881.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
50 For maximum cleanliness, don't edit this file;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
51 instead, insert this line in config.h. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
52 /* #define START_FILES crt0.o /usr/lib/Mcrt1.o */