1 / 6

Assignment

Seoul National University. Assignment. Seoul National University. Setting. Filezilla https://filezilla-project.org / FTP program Vi http:// xiasonic.tistory.com/48 환경설정 . vimrc 값 변경 : set 사용 화면분할 : sp ( 수평분할 ) : vs ( 수직분할 ) 이동 : Ctr + W + (j or k) :e filename ( 실행 ).

cullen
Download Presentation

Assignment

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Seoul National University Assignment

  2. Seoul National University Setting • Filezilla • https://filezilla-project.org/ • FTP program • Vi • http://xiasonic.tistory.com/48 • 환경설정 • .vimrc값 변경 • :set 사용 • 화면분할 • :sp (수평분할) • :vs (수직분할) • 이동 : Ctr + W + (j or k) • :e filename (실행)

  3. Seoul National University Pseudo Code #1 행배치(#행, n) for i = 0 : n – 1 if check( #행, i) { 배치 ( #행, i ) if ( #행 == n-1 ) { 출력 해 개수 ++ } else 행배치( #행 + 1, n) 제거 ( #행, i ) }

  4. Seoul National University Pseudo Code #2 Main // Initialize Data Structure // 인풋 처리 및 Loop구성 행배치(0, n) // 해 개수 출력

  5. Seoul National University IA32/Linux+WindowsRegister Usage • %eax, %edx, %ecx • Caller saves prior to call if values are used later • %eax • also used to return integer value • %ebx, %esi, %edi • Callee saves if wants to use them • %esp, %ebp • special form of callee save • Restored to original values upon exit from procedure %eax Caller-Save Temporaries %edx %ecx %ebx Callee-Save Temporaries %esi %edi %esp Special %ebp

  6. Q & A • 주석은 코드에 적어야 합니까? • 네, 그렇습니다. 상세 문서를 보시면 주석점수가 각 점수에 포함되어 있습니다. • 컴파일러가 만든 어셈블리 코드를 그냥 써도 크게 상관 없는 것 아닌가요? • 어셈블리 프로그래밍을 통해 얻을 수 있는 유익들을 놓치는 불상사가 발생합니다. • 또한 제대로 주석 처리 되지 않은 최적화의 흔적들 즉, 컴파일러가 만든 코드의 흔적이 보이면 감점요인이 됩니다. (ex 주석 처리 되지 않은 .alignment 등) • 컴파일러가 만든 어셈블리 코드는 참고만 하시되 정 어려운 경우에는 주석을 달아 해당 코드를 이해하였음을 보여주시기 바랍니다.

More Related