swiftlang/swift

[SR-407] Support ELF in cmpcodesize

開放

#43,024 建立於 2015年12月29日

 (2 則留言) (0 個反應) (0 位負責人)Swift (10,719 個分叉)batch import
good first issueimprovement

倉庫指標

星標
 (69,989 顆星)
PR 合併指標
 (平均合併 8天 17小時) (30 天內合併 510 個 PR)

描述

Previous ID SR-407
Radar None
Original Reporter @modocache
Type Improvement
Votes 0
Component/s
Labels Improvement, StarterBug
Assignee None
Priority Medium

md5: 47c497e6ac62c1fc388cf821f38e6cd3

Issue Description:

In https://github.com/apple/swift/pull/638, Nadav Rotem mentions supporting ELF as a potential feature for cmpcodesize.

cmpcodesize is a tool used by the Swift performance team to measure the size of built Swift products. It would be useful to see the size of built products on Linux (ELF) as well as on OS X (Mach-O, which cmpcodesize currently supports).

While the script currently uses otool (available on OS X), the readelf executable could be used to analyze files linked with ELF. readelf is available on Linux.

The script could detect the current platform and use the appropriate executable.

貢獻者指南