Cirrus Logic CS485 Instrukcja Użytkownika Strona 10

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 67
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 9
CS485G Spring 2015 10
iv. 1000
2
= 8. Try to negate this number.
v. 0111
2
= 7.
vi. 1001
2
= 7.
13 Compilation and disassembly in Linux
1. Compiler for C: gcc. Compiler for C++: g++.
2. Command-line options are by Unix convention marked with -.
-o filename put the output of compilation in filename
-E Don’t compile; just run the preprocessor
-S Compile but don’t assemble; result is filename.s
-c Compile and assemble, but don’t link; result is filename.o
-g Add debugging information to the result.
-On Turn on optimization level n (from 0 to 3)
3. Tools to inspect compiled code
(a) objdump -d filename: disassembles filename
(b) gdb filename: runs the debugger on filename; can disassemble
(c) nm filename: shows location and type of identifiers in filename
(d) strings filename: shows all the ASCII strings in filename.
(e) od filename: displays filename in numeric or character format.
(f) ldd filename: tells what dynamic libraries filename uses.
(g) dissy filename: graphical tool to inspect filename. You can in-
stall dissy by using apt-get.
14 Machine basics
1. Lecture 7, 1/30/2015 Lab 3
2. Lecture 8, 2/2/2015
3. An architecture, also called an instruction-set architecture (ISA), is
the part of a processor design that you need to know to read/write
assembler code. It includes the instruction set and the characteristics
of registers. Examples: x86 (also called IA-32), IPF (also called IA-64:
Itanium), x86 64.
Przeglądanie stron 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 66 67

Komentarze do niniejszej Instrukcji

Brak uwag