2016年9月

Web技术概论

Arbitrary Definition of TCP/IP

Basic Web Protocol Suite

  1. Scheme:
    identify particular sources of information that server hosts
  2. The way browser present information
    the content itself contains the formatting information(raw information)
    HTML(Hypertext Markup Language) enables information creators to describe the format of the information to be rendered at browser side
  3. How to interpret the text stream ?
    server is responsible to look at the file name extension and map it to something called MIME(Multipurpose Internet Mail Extensions)
  4. How should a browser ask a server to deliver some information ?
    HTTP request browser tell the server more in addition to the file name
    HTTP response server tell the browser something like content type and when the file was last modified
  5. CGI(common gateway interface)
    allow a browser (user at browser side) to invoke some procedure at the server side, passing data to the procedure and getting processed result back, not just asking for pre-stored information







- 阅读剩余部分 -

汇编与gdb调试

常用操作符

类型语法例子备注
常量符号$ 开头$-42$0x15213hex or oct
寄存器符号 % 开头%esi%raxvalue or adddress
内存地址括号括起来(%rbx)0x1c(%rax)0x4(%rcx, %rdi, 0x1)

常用汇编指令

InstructionEffect
mov %rbx, %rdxrdx = rbx
ass (%rdx), %r8r8 += value at rdx
mul $3, %r8r8 *= 3
sub $1, %r8r8--
lea (%rdx, %rbx, 2), %rdxrdx = rdx + rbx*2

- 阅读剩余部分 -

计算机系统导论课堂笔记

Bits, Bytes, and Integers

Representing information as Bits

Base 2 Number Representation
Byte = 8 Bits -> Base 16 number Representation
Data Representation

C Data TypeTypical 32-bitInter IA32x86-64
............

Bit-level manipulations

and or not xor

Representing & Manipulating Sets

Shift Operations
    Left Shift: Throw away extra bits on left. Fill with 0's on right.
    Right Shitf: Throw away extra bits on right.
        Logical Shift: Fill with 0's on left.
        Arithmetic Shift: Replicate most siginificant bit on left.
    Undefined Behavior: <0 || >= word size


- 阅读剩余部分 -

最新文章

最近回复

分类

归档

其它

微博

基佬们

Fork me on GitHub