Upgrade to Pro — share decks privately, control downloads, hide ads and more …

COSCUP-2020-Linux 軟體組裝工和他的工具們

COSCUP-2020-Linux 軟體組裝工和他的工具們

老梗,組裝

Wen_Liao

July 28, 2020
Tweet

More Decks by Wen_Liao

Other Decks in Programming

Transcript

  1. Outlines • 前言 • 測試環境 • 編輯器 • Code trace

    • 練續技 - Power of shell • 和ELF Binary 裝熟
  2. Who Am I? • Wen Liao • 工作經驗 ◦ 系統廠

    ▪ 組裝一 ▪ 組裝二 ▪ … ◦ 軟體套件供應商 ▪ 組裝一 ▪ 組裝二 ▪ … ◦ 軟體開發商 ▪ 組裝一 ▪ 組裝二 ▪ …
  3. Outlines • 前言 • 測試環境 • 編輯器 • Code trace

    • 練續技 - Power of shell • 和ELF Binary 裝熟
  4. $ lsb_release -a No LSB modules are available. Distributor ID:

    Ubuntu Description: Ubuntu 20.04.1 LTS Release: 20.04 Codename: focal $ gvim --version VIM - Vi IMproved 8.1 (2018 May 18, compiled Apr 15 2020 06:40:31) Included patches: 1-2269 $ gcc --version gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 測試環境
  5. Outlines • 前言 • 測試環境 • 編輯器 • Code trace

    • 練續技 - Power of shell • 和ELF Binary 裝熟
  6. • vim ◦ Demo last slide ◦ Vertical visual mode

    ◦ ?iw ◦ Plugins ▪ Python lint Demo
  7. Outlines • 前言 • 測試環境 • 編輯器 • Code trace

    • 練續技 - Power of shell • 和ELF Binary 裝熟
  8. • 字串相關 ◦ ack/grep ▪ 找出assign 變數 ▪ -l -n

    -r • Log 觀察 ◦ less ◦ tee ◦ script demo
  9. Outlines • 前言 • 測試環境 • 編輯器 • Code trace

    • 練續技 - Power of shell • 和ELF Binary 裝熟
  10. • List − 條件式 • && • || − 無條件式

    • ; 一行執行多個commands (1)
  11. Outlines • 前言 • 測試環境 • 編輯器 • Code trace

    • 練續技 - Power of shell • 和ELF Binary 裝熟
  12. • nm/gcc ◦ find | grep *\\.a$ | xargs nm

    -A | grep ◦ ld --verbose | grep SEARCH | tr "; " "\n\r" ◦ echo "" | gcc -E -xc - -dM -v ◦ gcc --save-temps • strace • LD_DEBUG=all