update use of valueT and addressT
[deliverable/binutils-gdb.git] / gas / NOTES
CommitLineData
07c788ce 1-*- text -*-
0e39a8bb 2
07c788ce 3PORTING:
542e1629 4
5bed5321
KR
5Sorry, no description of the interfaces is written up yet. Look at existing
6back ends and work from there.
07c788ce 7
5bed5321
KR
8New hosts: If your host system has a strange header file setup, create a
9config/ho-foo.h file for it and include the appropriate header files or
10definitions there. If your host has a broken compiler, or some broken macros
11in header files, create a host-specific file and repair the damage there.
12(See, for example, ho-rs6000.h. The "assert" macro on that system doesn't work
13right, and a flag is set to rewrite an expression in tc-m68k.c that the native
14compiler mis-compiles.)
07c788ce 15
5bed5321
KR
16New target formats: Look at the BFD_ASSEMBLER code. The a.out code might be a
17fair example. There are no "good" examples yet, unfortunately, nor any good
18documentation of the changes.
07c788ce 19
5bed5321
KR
20New target processors: Check first to see if the BFD_ASSEMBLER interface is
21supported by the file format code you need to use.
07c788ce
KR
22
23New environments: ???
24
25DOCUMENTATION:
26
607c8625
KR
27The internals of gas need documenting. (Actually, there is some documentation
28in doc/as.texinfo, but it's *way* out of date.)
07c788ce 29
607c8625
KR
30The documentation should also contain a "Trouble" section similar to gcc's
31manual: real bugs, common problems, incompatibilities, etc.
07c788ce
KR
32
33Anyone want to offer to maintain a man page?
34
35BFD CONVERSION:
36
5bed5321
KR
37The "#ifdef BFD_ASSEMBLER" code is on its way in; the "#ifndef BFD_ASSEMBLER"
38code is on its way out. The new code uses BFD data structures, and calls BFD
39for anything that needs to be written to the output file. The old code did all
40the writing itself, or in a couple of cases, used BFD as a slightly higher
41level than stdio (i.e., bfd_seek, bfd_write -- these are not the preferred
42interface).
07c788ce
KR
43
44Because of this, some of this code is messy. Lots of ifdef's, and the
5bed5321
KR
45non-BFD_ASSEMBLER version often has multiple conditional tests inside it for
46various processors or formats. As the various targets get converted over,
47these will gradually go away.
07c788ce 48
5bed5321
KR
49As of the moment I'm editing this file, only the "sun4" and "decstation-bsd"
50targets can really use the BFD code. Other back ends still need merging or
07c788ce
KR
51touching up.
52
53TO DO:
54
55Remove DONTDEF code, commented-out code.
56
5bed5321
KR
57Eliminate, as much as possible, anything not in config that is conditionalized
58on a CPU, format, or environment.
07c788ce 59
5bed5321
KR
60Finish conversion to using BFD for all object file writing. (This is the
61BFD_ASSEMBLER code, not BFD or BFD_HEADERS.) VMS might be the tough one here,
62since there's no BFD support for it at all yet. Eliminate the old code.
07c788ce 63
de001789
KR
64Fix lots of uses of empty strings to use null pointers. Will improve
65efficiency, and should make code clearer too.
66
5bed5321
KR
67Clean up comments; lots of 'em are one previous maintainer griping about
68another previous maintainer, unrelated to the code. (And with no names,
69they're not so fun to read. :-)
07c788ce 70
de001789
KR
71Lots of documentation.
72
07c788ce
KR
73Get Steve to document H8/500 stuff.
74
5bed5321
KR
75Put together a test suite, using DejaGnu.
76
07c788ce
KR
77(From old "NOTES" file to-do list, not really reviewed:)
78
79fix relocation types for i860, perhaps by adding a ref pointer to fixS?
c6cfc5b5 80
0e39a8bb 81remove the ifdef's from fx_callj tests?
0e39a8bb 82
07c788ce 83space tighten sparc alignment?
542e1629 84
07c788ce 85md_ => tc_
0e39a8bb 86
07c788ce 87share b.out with a.out.
This page took 0.075871 seconds and 4 git commands to generate.