aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/5l/softfloat.c
AgeCommit message (Collapse)Author
2013-12-08liblink: create new library based on linker codeRuss Cox
There is an enormous amount of code moving around in this CL, but the code is the same, and it is invoked in the same ways. This CL is preparation for the new linker structure, not the new structure itself. The new library's definition is in include/link.h. The main change is the use of a Link structure to hold all the linker-relevant state, replacing the smattering of global variables. The Link structure should both make it clearer which state must be carried around and make it possible to parallelize more easily later. The main body of the linker has moved into the architecture-independent cmd/ld directory. That includes the list of known header types, so the distinction between Hplan9x32 and Hplan9x64 is removed (no other header type distinguished 32- and 64-bit formats), and code for unused formats such as ipaq kernels has been deleted. The code being deleted from 5l, 6l, and 8l reappears in liblink or in ld. Because multiple files are being merged in the liblink directory, it is not possible to show the diffs nicely in hg. The Prog and Addr structures have been unified into an architecture-independent form and moved to link.h, where they will be shared by all tools: the assemblers, the compilers, and the linkers. The unification makes it possible to write architecture-independent traversal of Prog lists, among other benefits. The Sym structures cannot be unified: they are too fundamentally different between the linker and the compilers. Instead, liblink defines an LSym - a linker Sym - to be used in the Prog and Addr structures, and the linker now refers exclusively to LSyms. The compilers will keep using their own syms but will fill out the corresponding LSyms in the Prog and Addr structures. Although code from 5l, 6l, and 8l is now in a single library, the code has been arranged so that only one architecture needs to be linked into a particular program: 5l will not contain the code needed for x86 instruction layout, for example. The object file writing code in liblink/obj.c is from cmd/gc/obj.c. Preparation for golang.org/s/go13linker work. This CL does not build by itself. It depends on 35740044 and will be submitted at the same time. R=iant CC=golang-dev https://golang.org/cl/35790044
2012-08-07cmd/5l: dwarf line number support for Linux/ARMShenghou Ma
Part of issue 3747. R=dave, lvd, rsc CC=golang-dev https://golang.org/cl/6084044
2012-08-035a, 5l, math: Add support for ABSD, ABSF floating point instructions.MichaƂ Derkacz
R=golang-dev, dave, rsc, minux.ma CC=golang-dev https://golang.org/cl/6225051
2011-08-23build: avoid redundant bss declarationsRuss Cox
Some compilers care, sadly. R=iant, ken CC=golang-dev https://golang.org/cl/4931042
2011-06-09math: add sqrt_arm.s and sqrtGoC.go as fallback to soft fp emulationFan Hongjian
5a: add SQRTF and SQRTD 5l: add ASQRTF and ASQRTD Use ARMv7 VFP VSQRT instruction to speed up math.Sqrt R=rsc, dave, m CC=golang-dev https://golang.org/cl/4551082
2011-03-145l: fix buildRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/4279053
2010-12-09arm floating point simulationKen Thompson
R=rsc CC=golang-dev https://golang.org/cl/3565041
2010-11-03add hardware floating point.Ken Thompson
currently, softfloat does not work and there are some unsigned-to-float conversion errors. R=rsc CC=golang-dev https://golang.org/cl/2886041
2010-10-185l: handle jump to middle of floating point sequenceRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/2473042
2010-10-135l, 6l, 8l: first pass cleanupRuss Cox
* Maintain Sym* list for text with individual prog lists instead of using one huge list and overloading p->pcond. * Comment what each file is for. * Move some output code from span.c to asm.c. * Move profiling into prof.c, symbol table into symtab.c. * Move mkfwd to ld/lib.c. * Throw away dhog dynamic loading code. * Throw away Alef become. * Fix printing of WORD instructions in 5l -a. Goal here is to be able to handle each piece of text or data as a separate piece, both to make it easier to load the occasional .o file and also to make it possible to split the work across multiple threads. R=ken2, r, ken3 CC=golang-dev https://golang.org/cl/2335043
2010-10-135l, 6l, 8l: indent, outdentRuss Cox
This is entirely adding and removing tabs. It looks weird but will make the diffs for the next change easier to read. R=ken2 CC=golang-dev https://golang.org/cl/2490041
2010-04-06replace original float instruction with jump to make branchesKai Backman
to float instructions work correctly. R=rsc CC=golang-dev https://golang.org/cl/870044
2009-12-17 first stub for softfloats, intercepts float instructions and skipsKai Backman
them in the stream. R=rsc https://golang.org/cl/174052