summaryrefslogtreecommitdiff
path: root/AUTHORS
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-01-07 21:52:06 +0100
committerLudovic Courtès <ludo@gnu.org>2023-01-17 17:49:05 +0100
commit041f11b353c14246f24ee6330b14d27126a2e2ee (patch)
tree9fcc15ea3c7a42025d3aa6984f7b16e81c82a50c /AUTHORS
parentd0d9743607590b06fb978d09d3ddf98abbb7015a (diff)
downloadguile-041f11b353c14246f24ee6330b14d27126a2e2ee.tar.gz
linker, assembler: Avoid intermediate bytevectors.
This reduces the amount of memory used during linking and reduces the number of copies to be done between bytevectors. * module/system/vm/linker.scm (<linker-object>): Remove 'bv' field and add 'size' and 'writer'. (make-linker-object): Adjust accordingly. (string-table-size): New procedure. (link-string-table!): Remove. (string-table-writer): New procedure. (allocate-segment): Adjust 'make-linker-object' call. (find-shstrndx): Call the 'linker-object-writer' of O. (add-elf-objects): Adjust 'make-linker-object' call. Remove 'make-bytevector' allocations and move serialization to lazy 'writer' procedures. Define 'segments' and 'add-header-segment!'. Return the latter as the first value. * module/system/vm/assembler.scm (make-object): Remove 'bv' parameter and add 'size' and 'writer'. (link-data): Remove 'make-bytevector' call and move serialization to a lazy 'writer' procedure. (link-text-object): Likewise. (link-frame-maps): Likewise. (link-dynamic-section): Likewise. (link-shstrtab): Likewise. (link-symtab): Likewise. (link-arities): Likewise, and remove 'bytevector-append'. (link-docstrs): Likewise. (link-procprops): Likewise. (link-debug): Likewise, and define 'copy-writer'. * test-suite/tests/linker.test (link-elf-with-one-main-section): Adjust accordingly.
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions